Close

Account

Documentation

Forum

Menu

remove constant reminder of Visual Composer

  • Post count: 67
    huwcole
    July 9, 2016 at 12:20 pm #21121

    Hi Guys

    if anyone is interested in removing this constant activation reminder by Visual Composer do the following

    go to:
    wp-content\plugins\js_composer\include\classes\settings\class-vc-license.php”

    find line 485

    and add a return statement to immediately end execution of the function
    /**
    * Set up license activation notice if needed
    *
    * Don’t show notice on dev environment
    */
    public function setupReminder() {
    if ( self::isDevEnvironment() ) {
    return;
    }

    if ( ! $this->isActivated() && ( empty( $_COOKIE[‘vchideactivationmsg_vc11’] ) || version_compare( $_COOKIE[‘vchideactivationmsg_vc11’],
    WPB_VC_VERSION,
    ‘<‘ ) ) && ! ( vc_is_network_plugin() && is_network_admin() )
    ) {
    //add return statement here
    return;

    add_action( ‘admin_notices’,
    array( $this, ‘adminNoticeLicenseActivation’, ) );
    }
    }

    Post count: 2229
    Jegbagus
    July 12, 2016 at 2:23 am #21162

    hi huwcole, thank you for your code.

You must be logged in to reply to this topic.