I’m not exactly sure what you’re trying to accomplish but this won’t work because your trying to use or call the function that is declared in the parent theme instead of replacing it with a new function. I’m not sure if replacing a function in the child theme would work either. Maybe someone else can help answer that.
The function map_thumbnail()
that you’re trying to call in the child theme, is actually being used by the add_filter()
function right above it to modify the existing function post_thumbnail_html()
.
Additionally, even if it would work, you only passed one paramater (‘#0099dd’) in your attempt to call the function, and it appears to be out of order.
Related Posts:
- Passing variable from child theme to parent theme
- Override typo in multiple parent theme files?
- How to Pass External Variables to Filters/Actions
- Override parent theme function that is not hooked or in the functions.php file
- Can’t get wp_title filter working in twenty sixteen child theme
- How can I remove css from a child theme?
- Filter and modify entry-footer link in twentyseventeen
- Shortcodes — Using add_action, add_filter in the shortcode
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Trouble using remove_filter to override function in parent theme
- Why doesn’t this function work when I know that the IP Address is “true”?
- Changing the argument of a function
- output custom Posts on a Page
- Is there a function to edit Blogs contents in Blogs page?
- Adding to an array & passing it through do_action/apply_filters
- Override parent theme function that is not hooked or in the functions.php file
- How to filter part of a variable if it is no array?
- Passing value from one hook to another
- Disable emojicons introduced with WP 4.2
- How to remove a filter that is an anonymous object?
- WordPress hooks/filters insert before content or after title
- How to add defer=”defer” tag in plugin javascripts?
- How to override parent functions in child themes?
- Versioning @import of parent theme’s style.css
- add_action(), add_filter() before or after function
- apply_filters(‘the_content’, $content) vs do_shortcode($content)
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- What is the very earliest action hook you can call?
- How would one modify the filtering Gutenberg applies to pasted content?
- How can I modify the WordPress default widget output?
- Add custom options to the wplink dialog
- Remove classes from body_class
- what is __return_false in filters
- How to *remove* a parent theme page template from a child theme?
- Explanation for apply_filters function and its variables
- Gutenberg: Is there a way to know if current block is inside InnerBlocks?
- How to reorder billing fields in WooCommerce Checkout template? [closed]
- Insert HTML just after tag
- the_content and is_main_query
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- Changing WooCommerce Display Price Based on User Role & Category [closed]
- Override parent theme translation on child theme
- How to add a custom CSS class to core blocks in Gutenberg editor?
- How to show page content in feed?
- wp_headers vs send_headers. When to use each?
- Filter any HTTP request URI?
- How to filter users on admin users page by custom meta field?
- Filter by one custom field, order by another?
- Not able to change wp_title using add_filter
- Child theme – Overriding ‘require_once’ in functions.php
- How to appending to the_content using add_filter with custom post type?
- Query WP REST API v2 by multiple meta keys
- No filter of code on switch from html to visual editor, how?
- Sanitize and data validation with apply_filters() function
- How to modify posts_where filter only for the search query
- How to hook a filter to catch get_post_meta when alternate a custom field output?
- How to get shortcode’s input values inside a filter?
- Removing Image and Caption Dimension Attributes
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How to bulk delete all users with no posts?
- How many filter/action hooks are healthy?
- WordPress 3.9 – Trouble Editing TinyMCE 4.0
- Changing JPEG compression depending on image size
- How to add filter with 2 args?
- Why is javascript allowed in my post content?
- How to use update_{$meta_type}_metadata filter to modify meta value
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- How to wrap an element around an iframe or embed in content automatically?
- Filter specific shortcode output?
- WordPress Internal @ Mentions
- How to add headers to outgoing email?
- Earliest hook to reliably get $post/$posts
- Insert new element to array with add_filter
- LESS CSS enqueue_style with add_filter to change rel attribute
- Is it possible to filter comments in a post so a user can only see the comments they have written?
- How to pass/get data to/from the WooCommerce data-product_variations object?
- My child theme doesn’t work Error: “The parent theme is missing. Please install your parent theme”
- Remove Editor From Homepage
- How to modify Contact Form 7 Success/Error Response Output [closed]
- Where to hook into post content?
- Why is the Child Theme Stylesheet Not Loading?
- What does (10, 2) mean when used with add_filter
- Filter translations (gettext strings) on specific admin pages
- Filter username field on registration for profanity and unwanted words
- Clarification on filters and hooks
- Child Theme vs Duplicate Theme Renamed
- remove_filter( ‘the_content’, ‘wpautop’ ); only for certain post types
- At what priority does add_filter overwrite core functions?
- Valid characters for actions, hooks and filters
- is it possible to add “extra” table nav to edit-tags.php screens?
- Advanced Custom Fields and Yoast SEO keyword analysis [closed]
- Adding a filter to qTranslate to change display of language chooser
- Insert Custom HTML After Shortcode
- Modify links when inserted by WYSIWYG editor
- Is there a way to add another row to the tinyMCE kitchen sink toggle?
- How to hook into unregistering a widget instance?
- How to check if a hook is hooked or not?
- Completely strip any hidden formatting when pasting into TinyMCE
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?