'string' ], [ 'mcp' => [ 'type' => 'resource', 'uri' => self::URI, 'public' => true, 'mimeType' => 'text/markdown', 'description' => __( 'Opinionated WordPress patterns for Elementor builds: repeating layouts (single template vs N pages), include-all + exclude-exceptions condition scoping, Post Content placement, dynamic tags.', 'elementor' ), ], ], fn() => current_user_can( 'edit_posts' ) ); } public function execute( $input = [] ) { if ( ! file_exists( self::FILE_PATH ) ) { return new \WP_Error( 'resource_not_found', __( 'Static resource file not found', 'elementor' ), [ 'status' => 404 ] ); } // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents return file_get_contents( self::FILE_PATH ); } }