Support Forum
Hello,
I use something like the following code inside the rwmb_meta_boxes filter for a custom post type.
Is there any recommended way to make it run only on current custom post type. For example it also runs on post's edit screen and I get a PHP notice "Undefined variable: content"
if ( get_post_status( $post_id ) != 'publish' ) {
$content = 'Not Published';
} else {
$content = 'Published';
}