New Landing How can we help? Themeforest Theme Support Dante Remove WP version from functions.php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Dante
  • #73579
    ALDD
    Member
    Post count: 80

    Hello,

    Will the below code affect me in any way if I implement?

    I just don’t want to display my WP version.

    Your thoughts please:

    # Remove WordPress Version
    	function remove_wp_version() { return ''; }
    	add_filter('the_generator', 'remove_wp_version');
    
    # Remove Version Query Strings From JavaScript JS and CSS Stylesheet Files
    function _remove_script_version( $src ){
    	    $parts = explode( '?', $src );
    	    return $parts[0];
    	}
    	add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    	add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );

    Thank you.
    Antonio

    #73750
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It will not effect anything so you can use it without any problem .
    Thanks 🙂
    With Best Regards
    Swift Ideas

    #73786
    ALDD
    Member
    Post count: 80

    Fantastic…thank you Mohammad!

    #73808
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem, thanks Mohammed

    – Kyle

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register