是否有一种方法可以返回短代码文本而不是输出。
我的代码函数连接到了“the\\u content”,我知道如果我的函数包含shortcode,它将自动生成输出。我只想输出短代码文本,例如[图库]
add_filter( \'the_content\', \'show_on_front\', 10 );
function show_on_front( $content ) {
$content .= \'this is example of shortcode : [gallery]\';
return $content;
}
谨致问候,