The quickest way to answer this question is to follow the code. See get_post_custom
in Codex. Scroll down to Source Code section:
get_post_custom() is located in wp-includes/post.php
There we’ll see that get_post_custom
calls get_post_meta
, which then calls get_metadata
, which points us to:
get_metadata() is located in wp-includes/meta.php
there we’ll finally see the available filter:
$check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single );
in this case, post
is the $meta_type
, so our filter is get_post_metadata
Related Posts:
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- WP Rest API: details of latest post including featured media url in one request?
- How to disable Gutenberg editor?
- WordPress apply_filters() Arguments Missing
- plugin_action_links Filter Hook Deprecated?
- Update Multiple Post Meta for the Same Post In One call?
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Removing user contact methods works from functions.php but not from a plugin
- Comparisson between date() and a date from wp_postmeta
- Updating post meta for custom post types
- Is there any multiple filter/criteria plugin for wordpress? [closed]
- How to prepend to the_title for admin-side plugin’s use
- How can I add a custom meta value on file upload?
- How can I filter blog name?
- why does the add_action(‘the_content’) overwrite my page
- How to get custom field image url of specific size
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- Creating search filter through plugin
- Woocommerce Shipping module available only for type of products [closed]
- Add Fields with Sub-Fields to WP Job Manager
- merging an array to an existing array using add_filter
- add_filter the_content in functions.php not working
- locate_template with multiple categories?
- Gutenberg Blocks – Change EDIT part of the block using editor.BlockEdit filters. How to change the markup?
- Make the checkbox meta field checked by default
- WP Job Manager Category Drop-down; Change Placeholder Text Via Filter
- Randomize attachment IDs
- Pass info from functions.php to plugin
- WordPress Social Login > Post to a users Facebook wall
- add_query_arg not working
- Change permalink structure hidden button edit
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- When to call add_filter
- Inserting above the comment template
- What is generating my meta og:description?
- How to check current user before all actions and filters?
- How do I create a filter feature on WordPress? [closed]
- get current date + 90 days and checking every day
- Create a navbar filter that filters by a custom field
- Plugin developer automated documentation
- URL parameters causing 404 on home page, but nowhere else
- Which filter affects the ‘entry-title’ post class
- Filtering get_permalink in Jetpack / ShareDaddy
- Proper way to replace the_content only for pages created by custom plugin
- Redirect to another page using contact form 7? [closed]
- Add sub menu page in your plugin
- Meta box losing its value when scheduled post is published
- What exactly happens to function argument availability when using a filter?
- Check filter defined or not?
- How can I apply a WP filter on specific plugin version
- Editing wp-config.php
- How to remove bulk actions from custom post type
- How to use the pre_option filter before a plugin loads?
- Change text string in a plugin
- How to use filter to disable adding a product to wishlist?
- WordPress: Add custom add_filter for custom functions
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- How to have free shipping for WooCommerce Membership members
- How to use apply_filters?
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Filtered content appears in the excerpt
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Use a hook or filter, or overwrite this Gamipress function?
- Help to Create a Simple Plugin to make a post
- Randomize post (and page) IDs on generation
- Making a list that can be filtered by category/tags
- How to use third-party SendGrid Email Validation API in Gravity Forms?
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Custom Field used to allow a Free Story; no longer works
- How to Unhook actions/filters in within Class in plugin
- Get and Update Most Meta Value as an array in HTML form
- Nested Actions and Filters
- Use action, filter, or hook to append HTML to WordPress plugin function
- Customize plugin’s output: filters or setters: looking for an advice
- ACF Taxonomy search on backend (Relationship field)
- Get value from an input field and pass into update_meta_data as $meta_value
- What action or filter can I use to change all the html returned from server for a page?
- Can I add content before post content without using the_content filter
- How can I make my plugin display custom post meta data on the front end?
- apply_filters to content but ignore shortcodes
- getpost content with all formatting for admin pages
- Storing values in Post Meta vs new tables
- Which filters or actions involve with index page for plugin?
- How to add different CSS for galleries
- Add a filter to a different custom plugin
- How to add a filter conditionally based on page related Conditional Tags
- getting image alt text via ACF plugin in WordPress [closed]
- Which action/filter can i use for a Member Plugin [closed]
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to Add Extra Text In WordPress Title Before Post Publish
- How often should I execute add_filter and function declaration in Code Snippets?
- Update post meta Rest Api
- how to add meta for order in woocommerce
- WordPress REST API filter on blank custom ACF
- Brands Filter Not Working For On Sale Products
- FacetWP custom display based on post type [closed]
- Removing filters with arguments set in a class