StarComp Technology Blog

0

WordPress Function to WordPress Custom Admin Footer

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...

0

WordPress Function to Function to Disable RSS Feeds

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() {...

0

WordPress Function to New Media Library Column to Re-Attach Images

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’]...

0

WordPress Function to Themed custom loop using shortcodes

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...

0

WordPress Function to Set Editor Defaults to WYSIWYG or HTML

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($) {...