如果您熟悉此代码
<?php
$pattern = get_shortcode_regex();
preg_match(\'/\'.$pattern.\'/s\', $posts[0]->post_content, $matches);
if (is_array($matches) && $matches[2] == \'YOURSHORTCODE\') {
//shortcode is being used
}
?>
发件人this 但它不适用于嵌套的短代码。有人知道如何使其适用于嵌套的短代码吗?