id ) ) { $screen_id = (string) $screen->id; if ( '' !== $screen_id && false !== strpos( $screen_id, 'ai-content-by-parallax' ) ) { return true; } } $page = filter_input( INPUT_GET, 'page', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); return is_string( $page ) && 'ai-content-by-parallax' === sanitize_key( $page ); } /** * Retrieve the current AJAX action key. * * @return string */ private static function get_ajax_action(): string { $action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); if ( ! $action ) { $action = filter_input( INPUT_GET, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS ); } if ( ! is_string( $action ) || '' === $action ) { return ''; } return sanitize_key( $action ); } }