Some Valuable WordPress Points

  1. How to remove unnecessary <br>,<p></p> tag from WordPress WYSIWYG editor?
    Ans: I know sometimes it’s very irritating that unnecessary <br> tag coming out from the WordPress WYSIWYG Editor after <select> tag . It can remove by adding filtration in theme function.php file.

    remove_filter( 'the_content', 'wpautop' );
    remove_filter( 'the_excerpt', 'wpautop' );
  2. How to block Spam Comment Posting to your blog?
    Ans: Oh, yes, sometimes it’s became a horrible that 1000s of comments continuously posting in our blog and we are fade up to trash , delete it . Now the question is how do you manage this problem . I found a good solution for it and it it works for me.
    Stop Spammers” comes for best solution with it. It says that in 15 different ways it protect our blog from spamming . It has white label list , black label list in it’s history so, I can easily detect bad IPs. Even it blocks spam login also .
  3. How to stop “Update Notification of WordPress Core” and “Plugin Updates Notification”?
    Ans: I know it’s some time needed that you have to work on wordpress core files . In the same way you have to work on some wordpress plugin. So, if Admin user update the wordpress core file or the plugin , the functionality will gone you have made . So, just put the following codes in function.php to prevent the notification and update of WordPress Core files as well as WordPress Plugin:

    A. To block WordPress Core Update:
    if ( !current_user_can( 'edit_users' ) ) {
    add_action( 'init', create_function( '$a', "remove_action( 'init', 'wp_version_check' );" ), 2 );
    add_filter( 'pre_option_update_core', create_function( '$a', "return null;" ) );
    } 
    
    B. To stop Plugin Update:
    add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );

2 thoughts on “Some Valuable WordPress Points”

  1. i will try this functionality and it goes well try it…..

    //Disable Theme Updates # 3.0+
    remove_action( ‘load-update-core.php’, ‘wp_update_themes’ );
    add_filter( ‘pre_site_transient_update_themes’, create_function( ‘$a’, “return null;” ) );
    wp_clear_scheduled_hook( ‘wp_update_themes’ );

    //Disable Plugin Updates #3.0+
    remove_action( ‘load-update-core.php’, ‘wp_update_plugins’ );
    add_filter( ‘pre_site_transient_update_plugins’, create_function( ‘$a’, “return null;” ) );
    wp_clear_scheduled_hook( ‘wp_update_plugins’ );

    //Diasable Core Updates # 3.0+
    add_filter( ‘pre_site_transient_update_core’, create_function( ‘$a’, “return null;” ) );
    wp_clear_scheduled_hook( ‘wp_version_check’ );

Leave a Reply

Your email address will not be published. Required fields are marked *

Result of *Captcha loading...