|string $atts Shortcode attributes. */ public static function render( $atts ): string { $atts = shortcode_atts( array( 'id' => '' ), is_array( $atts ) ? $atts : array(), self::SHORTCODE ); $id = strtolower( trim( (string) $atts['id'] ) ); if ( ! self::is_uuid( $id ) ) { if ( current_user_can( 'edit_posts' ) ) { return '

' . esc_html__( 'Agentmatica starter questions: paste the ID from your dashboard, for example [agentmatica_starters id="..."].', 'agentmatica-mcp-connector' ) . '

'; } return ''; } return '
'; } public static function is_uuid( string $value ): bool { return 1 === preg_match( '/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/', $value ); } }