WP_Embed::run_shortcode

SummerySummery

Process the [embed] shortcode.

Syntax

WP_Embed::run_shortcode( string $content )

DescriptionDescription

Since the shortcode needs to be run earlier than other shortcodes, this function removes all existing shortcodes, registers the shortcode, calls do_shortcode(), and then re-registers the old shortcodes.

ParametersParameters

$content

(string) (Required) Content to parse

ReturnReturn

(string) Content with shortcode parsed

SourceSource

File: wp-includes/class-wp-embed.php


			
Scroll to Top