演示链接:查看演示

WordPress后台编辑文章页面添加自定义提示文字

针对你的客户,你可能需要对WordPress 后台的编辑器做些个性化操作提示,比如说编辑的一些说明、注意事项等等。WordPress 中可以使用以下类似的代码实现,还是放在wordpress 企业主题的functions.php 文件下:

//WordPress 后台编辑文章页面添加自定义提示文字

function dw_text_after_title( $post_type ) { ?>

    <div class="after-title-help postbox">

        <h3>使用提示</h3>

        <div class="inside">

            <p>啦啦啦,啦啦啦,我是卖报的小行家~~~</p>

        </div><!– .inside –>

    </div><!– .postbox –>

<?php }

add_action( 'edit_form_after_title', 'dw_text_after_title' );

THE END
喜欢就支持一下吧
点赞0 分享