是否可以添加admin_notice 到立柱。php管理中的编辑屏幕–仅当帖子刚刚更新时。
function my_admin_notice(){
global $pagenow;
if ( $pagenow == \'post.php\' ) {
// Check if the post was just updated...
echo \'<div class="notice notice-warning is-dismissible">
<p>This is my custom post-was-just-updated admin notice.</p>
</div>\';
}
}
add_action(\'admin_notices\', \'my_admin_notice\');