【実現したいこと】複数のカスタム投稿タイプの管理画面にOceanWPの設定ボックスを追加したい。
こちらを参照しました。
https://docs.oceanwp.org/article/368-add-the-oceanwp-settings-metabox-in-your-custom-post-type
上記によると
/**
- Add the OceanWP Settings metabox in your CPT
*/
function oceanwp_metabox( $types ) {
// Your custom post type
$types[] = 'ここにカスタム投稿を複数いれたい';
// Return
return $types;
}
add_filter( 'ocean_main_metaboxes_post_types', 'oceanwp_metabox', 20 );
とあります。現状僕はカスタムポストが複数あり、news,blog1,blog2
/**
- Add the OceanWP Settings metabox in your CPT
*/
function oceanwp_metabox( $types ) {
// Your custom post type
$types[] = 'news','blog1','blog2';
// Return
return $types;
}
add_filter( 'ocean_main_metaboxes_post_types', 'oceanwp_metabox', 20 );
とするとエラーが出てしまっています。
上記の記述の仕方ご存知でしょうか?

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。