怎么给WordPress编辑器添加自定义按钮
//编辑器添加按钮
function appthemes_add_quicktags() {
?>
<script type="text/javascript">QTags.addButton( '按钮名', '按钮名', '\n<div class="ask">', '</div>\n' ); </script>
<?php
}
add_action('admin_print_footer_scripts', 'appthemes_add_quicktags' );
转载请注明出处: 沐辰客栈
本文的链接地址: https://qqm90.cn/wordpress/421.html
发表评论 取消回复