开发者 |
daveshine
deckerweb wpautobahn |
---|---|
更新时间 | 2019年11月13日 07:47 |
捐献地址: | 去捐款 |
PHP版本: | 5.6 及以上 |
WordPress版本: | 5.3 |
版权: | GPL-2.0-or-later |
版权网址: | 版权信息 |
en_US
= default, always includedde_DE
- always includedde_DE_formal
- always included.pot
file (wpdr-simple-downloads.pot
) for translators is always included in the plugin's 'languages' folder :)toolbar extras
in the plugin installer ;-)manage_options
and/or edit_theme_options
wpdr simple downloads
), or extract the ZIP file and drop the contents in the wp-content/plugins/
directory of your WordPress installation.[display-posts]
shortcode/wp-content/languages/wpdr-simple-downloads/
(just create this folder) - This enables you to use fully custom translations that won't be overridden on plugin updates. Also, complete custom English wording is possible with that, just use a language file like wpdr-simple-downloads-en_US.mo/.po
to achieve that.
Deinstallation
If you ever want to uninstall the add-on (i.e. "WP Document Revisions Simple Downloads") you can use your stuff like before. All will work like normal as this plugin does NOT make any permanent modifications! Good to know, right?! :)Good question, hehe :). -- "WP Document Revision" (WPDR) already does all the heavy lifting for you, and in reality is your actual download manager! This add-on plugin here (a.k.a. "WP Document Revisions Simple Downloads") does minor adjustments and additions for more comfort, even easier (admin) usage and provides specific "Downloads" specific wording/ translations. The add-on fully leverages the existing hooks & filters of its base plugin as well as from WordPress itself. So, in reality it does not make any (permanent) modifications. With this approach we avoid performance issues and load things only where and when needed. -- Also, the add-on adds 3 nice little widgets which may help to improve your site/ download manager on the front end.
To insert download files (URLs) into posts, pages, other post types, sidebars or templates just use any of the following alternatives:
[documents]
and [document_revisions]
-- see Wiki for more info (scroll down a bit...)[display-posts]
shortcode // Count Shortcode - simple count posts or post types<?php do_shortcode( '[your_shortcode ...]' ); ?>
You decide, which wording or which translations will be loaded! In my opinion it's better to use purpose-specific and consistent wording throughout both plugins which will avoid confusions in day to day usage with your team. The add-on DOESN'T modifiy the actual post type that's used as the base. This post type is by WPDR and has the ID "document", therefore some admin urls and such still reflect this ID. But in the end this just doesn't matter :).
Of course it is! :) Works really fine in Multisite environment.
Yes, you can! Activating on a per-site basis is also possible. -- I recommend activating on a per-site basis in combination with "WP Document Revisions" plugin.
Currently as Gist on GitHub.
Final note: I DON'T recommend to add customization code snippets to your main theme's/ child theme's functions.php
file! Please use a functionality plugin or an MU-plugin instead! This way you can also use this better for Multisite environments. In general you are then more independent from theme/child theme changes etc. If you don't know how to create such a plugin yourself just use one of my recommended 'Code Snippets' plugins. Read & bookmark these Sites:
/wp-content/languages/wpdr-simple-downloads/
(just create this folder) - This enables you to use fully custom translations that won't be overridden on plugin updates. Also, complete custom English wording is possible with that as well, just use a language file like wpdr-simple-downloads-en_US.mo/.po
to achieve that (for creating one see the following tools)..pot
file for translators, plus German translationscomposer.json
file to the plugin's root folder - this is great for developers using ComposerREADME.md
file for plugin's GitHub.com repository to make it more readable there.pot
file for translators, plus German translations