Yoast\WP\SEO\Helpers

Post_Helper::strip_shortcodes()publicYoast 1.0

Removes all shortcode tags from the given content.

Метод класса: Post_Helper{}

Хуков нет.

Возвращает

Строку. Content without shortcode tags.

Использование

$Post_Helper = new Post_Helper();
$Post_Helper->strip_shortcodes( $content );
$content(строка) (обязательный)
Content to remove all the shortcode tags from.

Код Post_Helper::strip_shortcodes() Yoast 24.6

public function strip_shortcodes( $content ) {
	return \strip_shortcodes( $content );
}