403 ) ); } check_admin_referer( self::ACTION ); self::dismiss( get_current_user_id() ); // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Checked above. if ( isset( $_POST['afs_ajax'] ) ) { wp_send_json_success(); } wp_safe_redirect( admin_url( 'options-general.php?page=' . AFS_MENU_SLUG ) ); exit; } /** URL of the settings screen with the card shown again. */ public static function reopen_url() { return add_query_arg( 'afs_whatsnew', '1', admin_url( 'options-general.php?page=' . AFS_MENU_SLUG ) ) . '#afs-news'; } /** The card, or nothing. Echoes escaped markup. */ public static function render() { if ( ! self::should_show() ) { return; } $img = AFS_PLUGIN_URL . '/admin/images/'; ?>