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
- Versioning @import of parent theme’s style.css
- How to filter users on admin users page by custom meta field?
- Modify WordPress Rest Api Request/Response
- How to add some custom HTML into wordpress admin bar?
- Custom theme hooks / filters – passing arguments
- What params are available with the_content filter?
- How to hook wp_list_pages?
- Hook into admin post list page
- Add post/page ID to inserted links within the_content
- How to exclude/filter a tag from get_the_tag_list()
- Ajax, filters and shortcodes
- Filter the blog’s title without using global variables
- user_has_cap filter allows edit but will not allow save
- Add filter to wp_dropdown_pages() or wp_dropdown_categories() – no select container?
- Hook different functions to the same filter conditionally OR Pass additional arguments to existing filter?
- Changing a WordPress core function without hacking core
- where to apply “apply filters” and other Sanitization Functions
- Add guid filter to attachment in media library grid mode
- Pass parameter to the upload_dir filter
- Warning: Missing argument 2 for widget_title filter
- Change term name only on front
- How to add #navbar to all page links?
- Remote install won’t find Parent theme when intalling Child Theme, but local install does
- How to allow users to view pending posts of a specific custom post type?
- Change name of existing post status type
- add_filter(‘the_content’, ‘…’) stops pagination from working
- How can I exclude tags from category_rss function?
- How to remove SKU’s from ALL products in Quick View – already remove from each product page
- Remove add to cart icon/view product button woocommerce
- How do I use remove_action on an add_action that uses an array?
- Change the default 10-day expiration for the password protected pages cookie
- Add content as soon starts
- How can I change the language of automated Mails?
- How can I replace an oEmbed URL in post with actual embed HTML
- Replacing a deprecated filter ‘woocommerce_get_price’ with ‘woocommerce_product_get_price’
- How do you get specific tags from the_content?
- Add a filter inside an action init
- How Do I Get My Post Tags to Alphabetize?
- Is it possible to apply_filter on a wp_ajax_ action?
- Apply filters with multiple filters
- Filter by category and city for doctors and hospitals in wordpress
- Using add_filter to prepend content, result is out of order
- Creating a child theme: How do I find the template name of the parent directory?
- Why is overwriting $GLOBALS killing the_content()?
- Sorting products by price ( regular + sale price )
- get_posts() interrupt because of filter
- `authenticate` filter never gets called
- paginate_links() Change the order of links
- Multisite default theme and child applied to network
- Add Filter – Pass Variable (PHP < 5.3)
- How to disable a wp filter in a certain admin panel page
- Is there a filter to programmatically change the HTML tab switching output of the page editor?
- Why does admin_body_class not work?
- post_orderby filter breaks function
- Disable Remember Me in Login Form
- Counting a WP_Post Object value in an arary, using a filter?
- How to track a particular page in order to address the loading speed issue
- List all categories that have results in a query
- Distinguish between page and post in function
- How to filter page title for certain page?
- how to overwrite next_post_link
- Displaying posts on a page that have been assigned a value in a database
- Replace Text with hyperlinks
- adding an action inside if condition not working
- Adding filter to an specific page/site direction
- How to filter wp_get_recent_posts() to only posts that have thumbnails?
- Hook in parent theme Menu function
- How to check which submission button was clicked?
- check, if any “add_action” function contains string XXXXXXXXX
- filter wptexturize doesn’t work on old posts titles
- remove_action conditionally for Custom Post Type – not working
- wp_get_attachment_link filter not working
- How would I remove an inline googleAPI font script in the the parent theme header.php?
- Getting entry ID from frm_email_message filter in formidable
- How to activate the child theme in WordPress?
- Is there a hook or filter that adds a button to the left of the search box?
- Filter and manipulate the get_current_user() function
- add_filter(‘the_content’, ‘method’) does not trigger my custom method
- Better way to change the default password reset url with the woocommerce one?
- woocommerce_coupon_is_valid_for_product not working to exclude specific product tag
- Replacing text using add_filter
- Background color and background image below element in Contact Form 7 – error tip [closed]