Using a leading underscore will hide the field’s value from the default WordPress Custom Fields section, not the meta box you create via the plugin.
If you don’t want the field visible in your custom meta box, don’t add the field to the meta box at all, it really serves no purpose there anyway. You can manage the field’s value in your code directly via update_post_meta
and get_post_meta
.
Related Posts:
- Adding another state (spam, reject, approve) to wordpress comments?
- Problem in custom meta boxes
- Multiplile values checkbox or select in custom meta box
- Better Method for Multiple Meta Boxes
- I need a “Choose from existing content” popin
- Let’s Create Custom Field Template Documentation
- MetaBox not saving after empty
- Custom meta boxes not saving
- Meta Box Plugin Cloned Fields – Multiple Foreach values
- Make separate text boxes for separate WordPress Custom Fields
- Save input form on custom field
- When post is updated, custom metadata in text area field is overwritten
- How to filter post listing (in WP dashboard posts listing) using a custom field (search functionality)?
- Add validation and error handling when saving custom fields?
- Validating Custom Meta Box Values & Required Fields
- Is there a way to set default custom fields when creating a post?
- Custom field/meta populated by dropdown of existing posts?
- What is the index [0] for on post meta fields?
- Individual Widgets per Page
- Gutenberg add a custom metabox to default blocks
- ‘Preview Changes’ for custom meta boxes?
- Using TinyMce with textareas in meta boxes on custom post types
- add meta box – custom field : which to choose?
- Add metabox to document tab in gutenberg
- How to add add_meta_box to specific Page Template?
- Custom field metabox not showing in back-end
- Add custom objects/entities to WordPress
- How to hide meta box values from custom fields list?
- Arrange custom fields with drag and drop?
- How can I avoid re-inventing the Custom Fields wheel in my Plugin’s Metabox?
- Unable to get Preview of Uploaded image within a Custom Meta box
- Using media-upload.php to upload mp3 via custom fields
- extend Meta Box / Document Panel
- Add custom option to Standard Page Attributes Meta Box
- Edit Custom Database Tables in WordPress
- How to store the value of a custom field dropdown select for post referencing?
- Filter results with custom field values and dropdown
- Add multiple images to a page sidebar
- Meta keywords and descriptions plugin for manually editing meta for each page/post
- Only show metabox when date-value in other metabox is over?
- Making a configurable field translatable
- Custom Meta Boxes: Store two values in one repeatable field
- Is there a way to do multiple ordering on a multiple meta_query?
- Check before publishing, if already exist post with current custom field value
- Populating meta box with select-list of existing posts, and assigning it to custom post types
- How to customize default wordpress editor?
- Create meta boxes that don’t show in custom fields
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- Add custom meta box on Post page
- Custom Fields Bulk Edit
- Custom Page Template [closed]
- How to load php file for specific page in admin?
- How to set default metaboxes on user creation?
- How to make custom comment fields required and message field not required
- Metabox nonce PHP notice
- TinyMCE in Custom Metabox not loaded after upgrading from WP 3.1.4 to WP 3.2
- wp_editor in add_meta_boxes does not show gallery
- How do I assign this filter to a variable? (Appending php & markup to the_content)
- How to show custom field’s value under post/page title in wp-admin
- Adding Properties to User Profile and Displaying in List
- Create custom field key upon theme activation
- ajax delete value from custom field array
- Problem with adding exta field in metabox in custom post type
- How do I read the value of a custom field of the page?
- Adding a custom field or metabox to the post-thumbnail widget?
- Custom fields to save multiple values
- How do I add custom_meta_box_id’s value?
- Undefined index error when saving content on metabox
- How to save multiple metaboxes?
- Metabox with multiple fields added by user and upload box
- how to save multiple custom fields for a post in one go?
- add meta box using function.php
- Metabox image upload and custom field
- get_post_meta in sitewide tags plugin fails to return value for custom fields
- Best way to add custom / magic / flutter fields into RSS feed
- all tincymce’s switch when updating page after changing from html to text in custom metabox
- My metabox class
- wp_handle_upload error “Specified file failed upload test” but still creates attachment?
- How to construct multiple meta boxes
- Loading scripts to the Post Edit page only
- Force hide custom field metaboxes
- Woocommerce with metabox plugin
- Insert attachment ID in custom field from media uploader
- How do you create dynamic customised sections in WordPress?
- wp_editor removes paragraph from custom meta box
- How to Display Custom Meta Box only on Specific Page IDs
- Delete all custom fields at once?
- Dynamically add / duplicate custom meta in custom post types
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Metabox will not save
- Buddypress Add unserialized Profile Fields in Members Loop [closed]
- How to check for specific meta box value on front end and output accordingly
- Where did the Add New Custom Field go?
- How Meta Data is different from Custom Fields of POST/PAGE in WordPress
- Admin meta Image Path
- Tweak Meta for Post to work it for Pages also
- Odd PHP Code To Display HTML Of Meta Box [closed]
- Custom Taxonomy to dropdown box on adminside wordpress
- custom field not saved
- How to create a Custom Meta Box with Name/Value Admin User Input Fields?