でも、何もしないと「カスタム投稿タイプ」では「AddQuicktag」を利用できない。
そこで、AddQuicktag を カスタム投稿タイプ でも使用する方法をメモ。
AddQuicktag を カスタム投稿タイプ でも使用する
「functions.php」に下記を記述する。add_filter( 'addquicktag_post_types', 'my_addquicktag_post_types' );
function my_addquicktag_post_types( $post_types ) {
$post_types[] = 'カスタム投稿タイプ名1';
$post_types[] = 'カスタム投稿タイプ名2';
$post_types[] = 'カスタム投稿タイプ名3';
return $post_types;
}
