WordPress Function to Enable shortcodes in widgets
Enable shortcodes in widgets // shortcode in widgets if ( !is_admin() ){ add_filter(‘widget_text’, ‘do_shortcode’, 11); }
Enable shortcodes in widgets // shortcode in widgets if ( !is_admin() ){ add_filter(‘widget_text’, ‘do_shortcode’, 11); }
WordPress Custom Admin Footer // customize admin footer text function custom_admin_footer() { echo ‘add your custom footer text and html here’; } add_filter(‘admin_footer_text’, ‘custom_admin_footer’); I use this for client sites as a simple point...
Function to Disable RSS Feeds Tested on: WordPress 3.0.1 You can disable RSS feeds If you want to maintain your WordPress based website as static. You can Use this function : function fb_disable_feed() {...
With this function you can customize the “Howdy” message in top right of your admin area. This function make use of JQuery to change the “Howdy” message to “Welcome”. /****** Customize admin message “Howdy”...
Include custom post types in “Right Now” admin dashboard This will include your custom post types and the post counts for each type in the “Right Now” dashboard widget. // ADD CUSTOM POST TYPES...
Add a codex search form to the dashboard header This is a simple way to add a codex search form to the dashboard header, on the top-right next to the quicklinks drop-down. /** *...
New Media Library Column to Re-Attach Images This code adds a new column to the Media Library Page allowing you to re-attach images add_filter(“manage_upload_columns”, ‘upload_columns’); add_action(“manage_media_custom_column”, ‘media_custom_columns’, 0, 2); function upload_columns($columns) { unset($columns[‘parent’]); $columns[‘better_parent’]...
Themed custom loop using shortcodes Arguments are the same as the ones from query_posts. The content wrapped between the query tag is the template. add_shortcode(‘query’, ‘shortcode_query’); function shortcode_query($atts, $content){ extract(shortcode_atts(array( // a few default...
Set Editor Defaults to WYSIWYG or HTML function my_default_editor() { $r = ‘tinymce’; // html or tinymce return $r; } add_filter( ‘wp_default_editor’, ‘my_default_editor’ ); Here is how to remove the HTML Editor jQuery(document).ready(function($) {...
Remove Author Metabox/Options & Move to Publish MetaBox Tested on: WordPress 3.0.1 One of the things that drive me crazy is a cluttered WordPress Admin area. One of the elements which I now always...