Adds a new dashboard widget to your WordPress Admin Dashboard that pulls in items of the News Planet for the Genesis Framework and its ecosystem.
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' );
}
gdbn_filter_feed_source_url
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/';
}
gdbn_filter_widget_footer_info
/** Genesis Dashboard News: Remove Widget Footer Info */
add_filter( 'gdbn_filter_widget_footer_info', '__return_null' );
To add your own content here, use this code:
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_help_tab_content
All the custom, branding and developer stuff code above can also be found as a Gist on GitHub: https://gist.github.com/2597190 (you can also add your questions/ feedback there :)
Requires: 3.3 or higher
Compatible up to: 3.5.1
Last Updated: 2012-11-25
Downloads: 4,580
Got something to say? Need help?