Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: YITH premium plugin activation #21764
    ff ff
    Participant

    Go here:
    /wp-content/plugins/yith-woocommerce-quick-view-premium/plugin-fw/licence/lib/yit-plugin-licence.php or
    /wp-content/plugins/yith-woocommerce-quick-view-premium/plugin-upgrade/lib/yit-plugin-licence.php

    find this code section in second ftp path what i write a navigation:
    protected function _show_eciton_esnecil_etavitca() {
    $current_screen = function_exists( ‘get_current_screen’ ) ? get_current_screen() : false;
    $show_license_notice = current_user_can( ‘update_plugins’ ) &&
    ( !isset( $_GET[ ‘page’ ] ) || ‘yith_plugins_activation’ !== $_GET[ ‘page’ ] ) &&
    !( $current_screen && method_exists( $current_screen, ‘is_block_editor’ ) && $current_screen->is_block_editor() );
    global $wp_filter;

    and replace with this code:
    protected function _show_eciton_esnecil_etavitca() {
    $current_screen = function_exists( ‘get_current_screen’ ) ? get_current_screen() : false;
    // $show_license_notice = current_user_can( ‘update_plugins’ ) &&
    // ( !isset( $_GET[ ‘page’ ] ) || ‘yith_plugins_activation’ !== $_GET[ ‘page’ ] ) &&
    // !( $current_screen && method_exists( $current_screen, ‘is_block_editor’ ) && $current_screen->is_block_editor() );
    global $wp_filter;

    this code is for a first ftp path what i write on a top: (find this code section)
    private function _show_activate_license_notice() {
    $current_screen = function_exists( ‘get_current_screen’ ) ? get_current_screen() : false;
    $show_license_notice = current_user_can( ‘update_plugins’ ) &&
    ( !isset( $_GET[ ‘page’ ] ) || ‘yith_plugins_activation’ !== $_GET[ ‘page’ ] ) &&
    !( $current_screen && method_exists( $current_screen, ‘is_block_editor’ ) && $current_screen->is_block_editor() );
    global $wp_filter;

    replace with this:
    private function _show_activate_license_notice() {
    $current_screen = function_exists( ‘get_current_screen’ ) ? get_current_screen() : false;
    // $show_license_notice = current_user_can( ‘update_plugins’ ) &&
    // ( !isset( $_GET[ ‘page’ ] ) || ‘yith_plugins_activation’ !== $_GET[ ‘page’ ] ) &&
    // !( $current_screen && method_exists( $current_screen, ‘is_block_editor’ ) && $current_screen->is_block_editor() );
    global $wp_filter;

Viewing 1 post (of 1 total)