version, '2.7', '>=' ) ) && ! isset( $_COOKIE['yith_wc_2_7_notice'] ) ){ add_action( 'admin_notices', 'yit_fw_wc_update_message', 15 ); add_action( 'admin_enqueue_scripts', 'yit_plugin_fw_dismissable_notice', 20 ); if( ! function_exists( 'yit_fw_wc_update_message' ) ){ function yit_fw_wc_update_message(){ ?>
plugin_url() ) . '/assets/'; wp_enqueue_script( 'jquery-cookie', $assets_path . 'js/jquery-cookie/jquery.cookie.min.js', array( 'jquery' ), '1.4.1', true); $js = "jQuery( document ).ready( function(){ jQuery( '#yith-notice-is-dismissable' ).find('.notice-dismiss').on( 'click', function(){ jQuery.cookie('yith_wc_2_7_notice', 'dismiss', { path: '/' }); } ); } ); "; wp_add_inline_script( 'jquery-cookie', $js ); } } }*/ /* ========================== */