QTags.addButton(‘ID’, ‘ボタンの表示名’, ‘開始タグ’, ‘終了タグ’);a
<pre class="theme:xcode lang: decode:true " >//追加クイックタグ function add_my_quicktag() { ?> <script type="text/javascript"> //QTags.addButton('ID', 'ボタンの表示名', '開始タグ', '終了タグ'); QTags.addButton('h2','h2','<h2>','</h2>\n'); QTags.addButton('h3','h3','<h3>','</h3>\n'); QTags.addButton('h4','h4','<h4>','</h4>\n'); QTags.addButton('h5','h5','<h5>','</h5>\n'); QTags.addButton('p','段落','<p>','</p>\n'); QTags.addButton('br','改行','<br />\n'); QTags.addButton('bold','太字','<strong>','</strong>'); </script> <?php } add_action('admin_print_footer_scripts','add_my_quicktag');</pre>
参考にさせて頂いたサイト
https://kia-tips.com/wordpress/wp-add-quick-tag-without-plugin