Tag Info

Hot answers tagged

1

If you wanna show or hide entire meta box when event date is change, you can try to use Conditional Logic plugin, so you can rewrite your code like so: $meta_boxes[] = array( 'id' => 'wr_event_review', 'title' => 'Event Review', 'pages' => array( 'wr_event', ), // Post type 'context' => 'normal', ...


1

Plugins that load the WordPress environment this way get rejected from the repository, as they are prone to failure in non-standard configurations. For something like this I would use the admin-post-$action to receive requests. The WordPress API will be available where you can check if users are authorized to perform specific actions.



Only top voted, non community-wiki answers of a minimum length are eligible