Try using the rest_api_allowed_public_metadata
filter to whitelist the facebook
custom field. It will then appear in the response:
add_filter( 'rest_api_allowed_public_metadata', 'jeherve_allow_fb_metadata' );
function jeherve_allow_fb_metadata() {
// only run for REST API requests
if ( ! defined( 'REST_API_REQUEST' ) || ! REST_API_REQUEST )
return $allowed_meta_keys;
$allowed_meta_keys[] = 'facebook';
return $allowed_meta_keys;
}
Related Posts:
- How to create download links based on Custom Fields with Rewrite API
- Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [closed]
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Advanced search form with filters for custom taxonomies and custom fields
- Help Creating a Slideshow Custom Post Type with Custom Meta Boxes?
- Custom field values deleted when trashing custom post type
- Search multiple custom fields by using meta_query
- Custom Post Type – Taxonomy Dropdown Menu?
- How do I implement custom fields without using any plugins?
- How I check if the same post slug has not been used before publishing?
- Issue with saving custom post type when editor is removed
- order by meta_value serialized array
- convert Custom Fields Option-Values to Tags/Taxonomy
- Custom post type / custom fields
- how to set default value for checkbox in wordpress
- How to Display ACF Relationship Custom Field as Link to Specific Custom Post?
- Take Variables Set in Functions.php and Echo Them Inside My Custom Post Template
- Assign Taxonomy Based on Custom Field Value
- Ajax form filter post by custom fields [closed]
- Custom Posts Hierarchy? (State/City/Restaurant)
- Customize permalink when creating a post
- wp_query to find posts by year and month
- Assigning the same custom meta box to multiple post types
- meta_query compare >= not working but
- window.send_to_editor and jQuery .attr() conflicts with multiple custom upload image meta boxes
- How to structure a site with product variations pages?
- Save an array from drop-down in custom meta box
- Including Custom Meta with posts_where query
- How to create shortcode to display custom field value on a custom post type
- How to set up multisite for multi language?
- Filtering custom post type on a combination of custom taxonomies and custom fields?
- Creating a Custom Post as a repository for theme constants
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- Show custom post type relationships by taxonomy
- get_post_meta not working on publishing
- Query custom post type with ACF Date
- How to create a custom post type with additional fields?
- Add custom field in comments form
- Order Custom Post Type by Custom Field Value
- Hierarchy and access control for Custom Post Types (CPT)
- Hierarchical custom fields
- Fields for different parts of a page
- Facebook social publisher and custom post type fields [closed]
- Searching Custom Fields
- Custom Post Meta from custom metaboxes is randomly being deleted
- CRUD operations in wordpress
- How to display custom field value on page?
- How to get specific post meta by title or id
- Populate a custom field dropdown with post titles by author
- echo selected value from dropdown
- WordPress custom API endpoint – how to make the request more flexible
- Category Search / Custom Post Type search on my website. Custom Post Types that are “page-like”?
- add post meta value
- Get custom term meta problem on single post type
- Adding Template Post Content
- How to display a WordPress Custom Field only on a specific day of the week?
- Filtering custom posts by custom fields (ACF) [closed]
- Incorrect ordering of custom post type based on time
- How can I see a list of products that I have set to outofstock through a custom field check box?
- Jetpack Infinite Scroll won’t fire [closed]
- CPT Repeatable Fields + Undefined Index
- Filtered by a custom field, ordered by another
- delete duplicate meta_value with same post_id
- Search CPT Title AND Meta
- Save Custom Fields
- Custom field only on custom post type?
- Writing a custom Glossary plugin
- Filter search posts by post meta?
- Adding a location field to buddypress activity
- Display Posts that fit a certain criteria on Category pages
- Sort custom post column by generated value?
- How to only display all posts to a custom User Role?
- How to Grab Anime info using Jikan API and fill the value in Metabox
- Filter posts by their related field’s custom field
- How to display “META” array in register_taxonomy
- register_rest_field update_callback don’t work for $_FILES
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- Query a Custom Post Type using SELECT that has ACF fields to compare dates
- I want to create a metabox under custom taxonomy
- How can I register multiple custom post fields to json?
- Sql Update CPT from publish to draft and particular custom field
- Filter custom WP_Query by first letter of a custom field – hopefully using Search and Filter Pro?
- sorting in wp query based on custom field value
- PHP Notice: Unidentified index
- check_admin_referer not working in custom meta box for custom post type
- WordPress loop add heading before first of type
- How do i create user accounts from custom posts that have email addresses
- Best way to use Category & Custom Fields?
- How do I add custom fields to posts without having to manually add everytime I post?
- How to display custom post type ordered by a custom field date
- WP_Query and two custom fields returns no posts
- Is it good practice to search for custom posts based on custom field values?
- Custom post type with custom fields enabled, is there a way to set a default group of fileds?
- Storing/querying custom date data
- I want to split this into two functions
- Custom Post Meta on a Different Page?
- Custom Post type easy way for editors
- Creating post custom field text area
- querying to custom field over ACF REST API
- Custom Sort Order for Custom Post Type Taxonomy