WP Metabox not saving post meta
i am trying to implement a simple checkbox on the page, in order to dynamically add a Html chunk in case the user choses it, but i am unable to save the post_meta to perform this task, can someone help me? The value taken from this checkbox input is not been save on the post meta information. This is what i got so far on my functions.php function wporg_add_custom_box(){ $screens = ['page', 'wporg_cpt']; foreach ($screens as $screen) { add_meta_box( 'wporg_box_id', // Unique ID 'Enter', // Box title 'wporg_custom_box_html', // Content callback, must be of type callable $screen, // Post type 'si
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.