Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 210725

Can I use CMB2’s show_on_cb within another Plugin instead of functions.php?

$
0
0

Replies: 0

I’m trying to setup some metaboxes outside the functions.php file along with some custom post types.

I have the cpts and now the cmb2 metaboxes working but I’m having trouble figuring out how to use a show_on_cb. I guess how I use the add_action and add_filter are throwing me.

If I have CMB2 installed as a Plugin and I’m making a Plugin, should include everything in an initialize just like a functions.php approach?

Thanks


Viewing all articles
Browse latest Browse all 210725

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>