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:
- taxonomy_template filter not working on pagination [duplicate]
- 500 Internal server error wp_handle_upload_prefilter
- WooCommerce Product Table – filter query on attributes
- Does having apply_filters in the middle of an array make a difference?
- Disable WC Bookings automatic order completion [closed]
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- how can I edit the HTML of yith ajax product filter
- Custom Field used to allow a Free Story; no longer works
- How to Unhook actions/filters in within Class in plugin
- Plugin function in child theme
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- 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
- Modify function output in a plugin
- How to create meta fields with more than 1 relation?
- Customize plugin’s output: filters or setters: looking for an advice
- Using Filters to modify contect – DB query results alwats appear fist
- Override filter variable not working
- Remove action added in plugin class from theme
- Customize plugin templates
- Show custom taxonomy in theme
- Using multi-dimensional array with filter
- ACF Taxonomy search on backend (Relationship field)
- Get value from an input field and pass into update_meta_data as $meta_value
- Help needed with woocommerce (wc stripe) filter
- How to get post that has non zero or greater than zero 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
- Delete postmeta when uninstall/delete plugin
- WordPress Add advertising ads befor and after content with periority [closed]
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Edit plugin filter
- Same Title on two different post type with single custom taxonomy
- Add Filter to get_next_posts_link
- How can I make my plugin display custom post meta data on the front end?
- Passing a parameter to filter and action functions
- trying to create simple plugin to filter categories from all authors
- Jetpack Comments Change Placeholder Text
- shortcode which is introduced into entry the blog, and appears in side bar
- How do i get all author posts on custom post type list
- How to filter a a variable in a plugin’s function?
- Retrive images from the_content()
- passing ‘&’ in return function of add_filter
- Filter the HTML content of plugin
- apply_filters to content but ignore shortcodes
- Use of apply_filter in plugin/widget class
- change output location of plugin function using a custom hook
- getpost content with all formatting for admin pages
- Filter for modifying image on upload
- making a glossary with wordpress
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- Storing values in Post Meta vs new tables
- Strip shortcode from excerpt [duplicate]
- Which filters or actions involve with index page for plugin?
- How to add different CSS for galleries
- County Finder form/plugin?
- Simply Exclude – Category feed exclusion is excluding from category feed instead of just the main feed
- Add a filter to a different custom plugin
- Add meta tags with a plugin?
- WordPress User Frontend Editing Custom Fields
- How to change response of admin-ajax request?
- add query string to all pages after user logged in
- How to add a filter conditionally based on page related Conditional Tags
- wordpress last all added get meta value by post id
- Get post id in Post Page within Wp-admin
- Output plugin post like system count [closed]
- WP Members additional fields on user profile [closed]
- WordPress plugin add_filter returning a link does not work. What is the correct way?
- getting image alt text via ACF plugin in WordPress [closed]
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [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 product thumbnail on orders list on backend?
- Custom priority with the_content filter based on user input
- how to add meta for order in woocommerce
- filter just a portion of plugin function
- WordPress REST API filter on blank custom ACF
- Selectively override Easy Digital Downloads protection via filter
- Brands Filter Not Working For On Sale Products
- Deactivated a plugin with a filter, but it still enqueues JS files
- FacetWP custom display based on post type [closed]
- Change social icon in twenty twenty three theme
- Removing filters with arguments set in a class
- is_singular() in mu-plugins not working
- Remove wpseo filter from polylang plugin
- How to disable Yoast meta description for all pages
- WooCommerce Attribute Mapping
- How can we extent core/group or cover block?
- Hide attributes based on previous selection
- Customize WP Filter Hook
- Force post update with React
- wp_head filter not executed inside custom class
- What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request
- remove filter added by plugin with anonymous function
- How to display title, description etc in block images?
- Possible to overwrite load_template function in plugin using functions.php