标签: wordpress
为什么我不能像以下那样重写对象:
$ps = get_post($post->id_content_replacement); $post = $ps;
其中$ps是对象的帖子:
$ps
add_action('the_post', array($this, 'post_callback'));
所以,我试图通过the_post
the_post
get_post()