I think that question is solvable easy-
There is a way to add custom meta box. You can basically copy this from here: add_meta_box
Now, make a checkbox in the custom meta box and a hidden field with the post id. Instead of updating post meta with
update_post_meta( $post_id, '_my_meta_value_key', $my_data );
you now can do update_option
in WordPress which is global.
Related Posts:
- How to force one column layout on custom post type edit page?
- How can I add a column/s to wp_posts table?
- WP_List_Table Inside Metabox Not Working on Submit
- Add metabox with media uploader in a custom post type [duplicate]
- add_meta_box: Datepicker like the one for postdate?
- Change Post Title Edit Box
- Multiple information using custom post type
- Notice: Undefined index: suppress_filters
- Adding dropdown select meta box to custom post type – seems restAPI is interfering
- Changing custom type name hides the posts
- Create a custom post type based on ‘Post’
- $_POST from a Meta Box
- Edit post meta direct from post.php?
- How to Arrange Support => Thumbnail
- Display a post count from a custom metabox selection
- How to filter homepage posts by popularity? [closed]
- Canot save post if any meta box was empty
- Remove Custom Taxonomy Metabox from Custom Post Type Screen
- Linking Two Post Types
- Can you make a custom metabox field be required to save a new post?
- Changing the priority of a custom taxonomy’s metabox
- Pull Two Posts Into Custom Post Type `single-cpt.php`
- Problem excluding category from get_next_post
- Detect meta value changes when post is updated (post_updated)
- Custom field being erased after autosave
- How to select one major category (or custom taxonomy) for a custom post type?
- Custom post type’s slug gets wrong when adding a custom meta box
- Custom Meta Boxes – Nonce Issue – Move to trash issue
- How to add meta boxes(repeater fields) from WordPress back end?
- Displaying Meta Box Image
- Quickest way to get last or oldest post date – WP Query
- How to use custom fields to enable sticky posts on custom post types?
- get_post_meta is returning image id
- Show Two custom Post type and their posts on category page
- count_many_users_posts except current logged in user?
- Custom post type and body_class: Remove “blog” class
- WordPress nl2br is not converting newline to html line break when saving metabox value
- How to get the post type from a category id?
- Create custom PAGE with register_post_type
- How i can add ‘N’ page of ‘N’ pages under posts loop?
- What’s the difference between same wp functions get_posts(); functions in different form?
- Getting posts under the custom post type ui category
- Custom Post Type with Templates using Meta Boxes?
- Turn on and off custom post type from admin?
- I would like to have different styles for my posts based on the content of each post
- Add custom post type settings to wordress default posts
- JS innerhtml changing style when using AJAX
- Side effects of Script and Iframe in post
- Several post types on WP Query by tag and taxonomy
- Listing custom terms in custom post meta
- Some posts from custom post type to subdomains
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Moving meta boxes in admin
- wordpress remove views from action links in a custom post
- Is it possible to show multiple (custom) post types at the wp homepage only by using pluging code?
- Displaying a div from an assigned meta_value when on a page
- Add to ‘action’ within post.php to allow more actions when editing a Custom Post Type in a plugin
- Metabox multiple custom post select -> display selected items?
- Get post format
- Template code to split a post and print a custom field?
- Send post changes to set email addresses (not users or subscribers)
- Related posts meta_query CPT
- Meta box with front-end styling
- Custom post type title of each author in his own post
- Custom Post type registering as page post type
- Custom Posts and Posts – next_post_link and previous_post_link not working together
- Problem On Retrieving Post Meta Data on Custom Column [closed]
- Enable comments for post when comments meta box removed
- How to: Add a publish immediately button when editing custom WordPress posts?
- Custom MetaBox : Food Menu Item Available Dates
- how to compare different timestamps in wp-query for events custom post types?
- Checking for custom field in admin pages
- Custom Posttype URL
- Create post meta box that links another post
- Best way to fix bad count on All | Mine | Published
- open custom post type in popup window instead of page
- Permalink for specific post type
- Adding specific custom fields (images) to post excerpt
- How to add custom PHP code in post header?
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- custum post inner page not taking single-gallery.php? it redirecting to archive page
- Change Custom Post Type to Post + Category
- Metabox messes up permalink
- Render the metabox input values as HTML
- How to check if meta box value is false for all posts then do something based on that
- Cannot use pages created on WP
- Calling specific page with wp query
- erase post excerpt limitation [×]
- Custom meta-box for all custom post types
- Meta-Box to add multiple items one at a time and on publish save all
- Displaying wp post categories into my custom metabox
- Filter CPT based on meta box value using Flexible Posts widget?
- Pulling in a particular post into a single page based on the post id passed into the code
- Custom My account page and custom page for editing posts
- Issues on saving data from CPT select metabox
- Get post from custom post type that title is like custom string [closed]
- show posts under custom post type with same autj
- Storing every individual update to the posts being updated over time?
- Change post structure