' . esc_html__( 'Upgrade to Pro', '007aj-security-scanner-firewall' ) . ''; return $links; } /** * Render the notice until the current user dismisses it. */ public static function render() { if ( ! current_user_can( Plugin::capability() ) || get_user_meta( get_current_user_id(), self::META, true ) ) { return; } $dismiss = wp_nonce_url( add_query_arg( 'action', self::ACTION, admin_url( 'admin-post.php' ) ), self::ACTION ); echo '

' . esc_html__( 'Want more protection? Upgrade to Pro: 007AJ Security Scanner & Firewall Suite is a separate paid plugin from 007AJ. This free plugin stays fully usable on its own.', '007aj-security-scanner-firewall' ) . ' ' . esc_html__( 'Upgrade to Pro', '007aj-security-scanner-firewall' ) . '' . ' · ' . esc_html__( 'Dismiss', '007aj-security-scanner-firewall' ) . '' . '

'; } /** * Remember the dismissal for this user. */ public static function dismiss() { if ( ! current_user_can( Plugin::capability() ) ) { wp_die( esc_html__( 'Sorry, you are not allowed to do that.', '007aj-security-scanner-firewall' ), 403 ); } check_admin_referer( self::ACTION ); update_user_meta( get_current_user_id(), self::META, 1 ); $back = wp_get_referer(); wp_safe_redirect( $back ? $back : admin_url( 'admin.php?page=' . Menu::SLUG ) ); exit; } }