wdkit_rating_banner_settime(); } /** * New widget demos link notice * * @since 1.0.17 */ public function wdkit_rating_banner_settime() { $this->user_id = get_current_user_id(); $wdkit_rating_banner_start_date = get_user_meta( $this->user_id, $this->rb_start_date, true ); if ( false === $wdkit_rating_banner_start_date || empty($wdkit_rating_banner_start_date)) { $start_date = new DateTime(); $start_date->modify( '+3 days' ); $new_date = $start_date->format( 'Y-m-d' ); add_user_meta( $this->user_id, $this->rb_start_date, $new_date, true ); } if ( !empty( $wdkit_rating_banner_start_date ) ) { $current_datetime = new DateTime(); $current_date = $current_datetime->format( 'Y-m-d' ); if ( $current_date > $wdkit_rating_banner_start_date ) { add_action( 'admin_notices', array( $this, 'Wdkit_rating_banner' ) ); /**Rating Close Notice*/ add_action( 'wp_ajax_wdkit_rating_banner_dismiss_notice', array( $this, 'wdkit_rating_banner_dismiss_notice' ) ); } } } /** * New widget demos link notice * * @since 1.0.17 */ public function wdkit_rating_banner() { $current_screen_id = get_current_screen()->id; $nonce = wp_create_nonce( 'wdkit-rating-banner' ); $slugs = array( 'toplevel_page_wdesign-kit', 'toplevel_page_uichemy-welcome', 'uichemy_page_uichemy-settings', 'toplevel_page_theplus_welcome_page', 'theplus-settings_page_theplus_options', 'theplus-settings_page_theplus_import_data', 'theplus-settings_page_theplus_api_connection_data', 'theplus-settings_page_theplus_performance', 'theplus-settings_page_theplus_styling_data', 'theplus-settings_page_theplus_purchase_code', 'theplus-settings_page_theplus_white_label', 'toplevel_page_tpgb_welcome_page', 'the-plus-settings_page_tpgb_normal_blocks_opts', 'the-plus-settings_page_tpgb_connection_data', 'the-plus-settings_page_tpgb_performance', 'the-plus-settings_page_tpgb_custom_css_js', 'the-plus-settings_page_tpgb_activate', 'the-plus-settings_page_tpgb_white_label', 'edit-plus-mega-menu', 'plugins', 'dashboard', ); if ( ! in_array( $current_screen_id, $slugs, true ) ) { return false; } ?> '; echo '
';
echo '