-4
我想写一个WordPress插件,但我无法找到一个动作或方式来指向上述职位的有没有在wordpress上指出的帖子的任何行动?
我想写一个WordPress插件,但我无法找到一个动作或方式来指向上述职位的有没有在wordpress上指出的帖子的任何行动?
试试这个:(在functions.php
)
add_filter('the_content', 'featured_image_before_content');
function featured_image_before_content($content) {
/* if (is_singular('post') && has_post_thumbnail()) { */
$content = 'YOUR DATA'. $content;
/* }*/
return $content;
}
你可以从这里补充条件:LINK
是否要在发布内容之前添加内容? – vrajesh