Since you are using a Child Theme, the functions.php file in there is loaded before the parent theme’s functions.
So, if you define some_function() in the Child Theme, any declaration of that function in the parent theme will fail. If the parent theme is using a function_exists() to check if some_function() is defined, it should find the function as already being defined, so the parent function will not be loaded.
So, your code to check if the function_exists() is not really needed – since you are in a Child Theme. Only if the parent theme does not do a function_exists for some_function() will there be issues – possibly fatal errors that will disrupt the site.
Related Posts:
- Is it ok to use a function to output the text domain name in a wordpress theme
- Display random categories on the front page (Finding and Editing Theme Functions)
- How to get woocommerce inventory status [closed]
- TinyMCE custom styles remove class when switching styles
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- Organize functions.php
- How to override functions.php in child theme?
- Overriding core functions in child theme
- Php string not working in WordPress Functions.php (trying to fetch 1st category for each blog that post appears in the sidebar)
- Add inline css to theme
- Dequeue Scripts and Style for Mobile not working?
- Displaying Widgets
- Dequeue script in template isn’t working
- Where does function_exists() look to decide whether a function exists? [closed]
- Add external js file to footer with id
- Changing itemprop from logo to image on custom logo?
- How to add background image control to page admin controls?
- Best Practice for Syncing Local Development With Staging Development [closed]
- Overwrite Parent Theme add_image_size in Child Theme
- Twenty Eleven Child theme error when attempting to use a rewritten function
- How to call custom function from functions.php in site-wide template files?
- How to use thumbnails in gallery?
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How to use Internationalized human_time_diff() function in Chinese?
- is_dynamic_sidebar always returns true while using Jetpack visibility
- How to enable template page only for a post id page
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Pulling Twitter RSS feed not working as expected (fatal error)
- Use register_setting() in a loop
- Best practices regarding the creation of custom widgets?
- Add dynamic links in WordPress custom theme
- WordPress menu link doesn’t work properly
- Search filter by Post title OR Meta Title Value [duplicate]
- how can I edit flexslider in woocommerce. [Urgent]
- admin-ajax.php + load-scripts.php hanging for minutes
- enqueue styles for only mobile wp
- Jquery implementation not working on page reload
- Unique sequential reservation code
- Usage of theme name in functions
- Functions.php Problem
- ACF not showing
- How to customize the_archive_title()? Cannot figure out how to change the value it produces [duplicate]
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- Remove Custuomize Sections
- Excerpt for pages not showing
- wp_star_rating() – Adding a 5 star rating system to theme
- Some questions about how proper add 2 CSS file in a WordPress theme?
- Does size of a theme’s functions.php file matter?
- Functions php shortcode for displaying main menu with no child items
- get_next_posts_link() returns no result despite available posts
- Nav menus all outputting the same links
- PHP 7.1 | Warning: A non-numeric value encountered in
- How to insert class in each list of categories?
- I can’t add CSS with functions.php
- Check from functions.php if function exists in footer.php
- Combine two active_callbacks into one on theme customizer
- WP Customizer API loaded into functions.php
- call_user_func_array() expects parameter 1 to be a valid callback, function
- why can’t i add front.css to my frontpage.php
- “options.php” not found
- Is this an acceptable practice for WordPress theme development?
- Rewrite Question Mark in Post Template with URL Parameter for clean URLs
- contact form in template with jquery,validate and ajax
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Woocommerce Variable Product Dropdown for Custom Shop Template
- How to fix Function create_function() is deprecated in / themes
- Exclude specific post from query
- Advanced method to control cache of enqueued style/script
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- Is_Page doesnt detect my page
- Test CDN link from function.php or wp_enqueue_script/style?
- How to customize archive widget only for cpt?
- I have an fatal error on my funcyions.php
- wp_title() return random number
- Why does echo on functions.php not yield result in source code?
- How to offset main query without affecting other queries and backend
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- Remove External Links from WordPress posts Using add_filter() in Theme functions.php
- HowTo: Add wrapper to columns shortcode?
- How to create admin ajax function for my contact form
- How to disable site title and description when custom header is uploaded on the customizer?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Load a Child Theme’s style.css just before the closing tag
- wp_nav_walker that interacts with widgets to setup mega menu
- Allow tags and attributes in post and pages content
- Retrieve array of attachment IDs attached to a given Post ID
- Add the title of a widget as an ID – for anchor links
- Why functions metaboxes is causing White Screen in Admin [closed]
- Getting error on function.php
- Setcookie not setting cookies anywhere except admin
- How to use webpack in WordPress theme? I want some scripts to load in the footer, some in the header and some with script parameters
- How can I able to exclude ‘Category’ and ‘Tag’ slug from the URL in WordPress without reloading to new site?
- No src and sizes attributes present on WordPress thumbnail images; the smallest image size is loaded irregardless of viewport size