开发者 |
daveshine
deckerweb |
---|---|
更新时间 | 2012年11月25日 21:29 |
捐献地址: | 去捐款 |
PHP版本: | 3.3 及以上 |
WordPress版本: | 3.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
genesis-dashboard-news.pot
) for translators is also always included :)genesis-dashboard-news
folder to the /wp-content/plugins/
directory/wp-content/languages/genesis-dashboard-news/
(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 genesis-dashboard-news-en_US.mo/.po
to achieve that (for creating one see the tools on "Other Notes").Just drop me a note at my Twitter @deckerweb
Yes, you can! Just step up to Genesis News Planet @friendfeed -- or subscribe via RSS/ATM feed in your feed reader :)
Sure, you can change that. You need to add the following code to your child theme's functions.php file
, the "Custom Code" section in Prose 1.5+ or to a functionality plugin. Please note: BACKUP the functions.php
file before doing so! And please also note this: Changing that value will effect ALL other usages/appearances of RSS cache lifetime, so for example the built-in WordPress RSS widget and the other default dashboard widgets importing feed content. So use at your own risk!
The number at the end is the time in seconds. So 300 means actually 5 minutes. - Got it? It's that simple, yes :)
/** RSS cache lifetime */ add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a', 'return 300;' ) );
Yes, this is possible since plugin version 1.6.0! The default capability is 'read' (= 'Subscriber' user role). You can change that via the follwing filter:
add_filter( 'gdbn_filter_capability_all', 'custom_gdbn_capability' ); /** Genesis Dashboard News: Custom Dashboard Widget Capability */ function custom_gdbn_capability() { return 'edit_posts'; }
--> The above example code will only display the dashboard widget & the plugin's Dashboard help tab to users which have the capability of edit_posts
.
Sure thing. I've included some filters since plugin version 1.5 so you can customize/brand it to your liking! I list the filter names in bold and then add more details on each of them: gdbn_filter_widget_title
add_filter( 'gdbn_filter_widget_title', 'gdbn_custom_widget_title' ); /** Genesis Dashboard News: Custom Widget Title */ function gdbn_custom_widget_title() { return __( 'Custom Widget Title', 'your-textdomain' ); }
add_filter( 'gdbn_filter_feed_source_url', 'gdbn_custom_source_feed_url' ); /** Genesis Dashboard News: Custom Source Feed URL */ function gdbn_custom_source_feed_url() { return 'http://your-source-url.com/feed-whatever/'; }
/** Genesis Dashboard News: Remove Widget Footer Info */ add_filter( 'gdbn_filter_widget_footer_info', '__return_null' );
add_filter( 'gdbn_filter_widget_footer_info', 'gdbn_custom_footer_widget_info' ); /** Genesis Dashboard News: Custom Widget Footer Info */ function gdbn_custom_footer_widget_info() { return __( 'Your custom widget footer info here...', 'your-textdomain' ); }
gdbn_filter_help_tab_title
add_filter( 'gdbn_filter_help_tab_title', 'gdbn_custom_help_tab_title' ); /** Genesis Dashboard News: Custom Help Tab Title */ function gdbn_custom_help_tab_title() { return __( 'Custom Help Tab Title', 'your-textdomain' ); }
gdbn_filter_capability_all
. (See FAQ for more info)/wp-content/languages/genesis-dashboard-news/
(just create this folder) - this enables you to use fully custom wording or translations.