You can get rid of the theme update situation by using a child theme. Your child theme will work as an extension of the parent theme that you update often. You can learn more about child theme from here.
But if you don’t wanna use child theme then yes, you can add as many additional functions file as you want. A regular include
or require
will just work fine. You can include file using a relative path or you can use get_template_directory()
function for an absolute path. For instance
include get_template_directory() . '/inc/functions-1.php'; // if it's inside inc directory
include get_template_directory() . '/functions-1.php'; // Or if it's not inside any directory
Related Posts:
- get_template_directory_uri pointing to parent theme not child theme
- Include PHP file in Content using [shortcode]
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- What is the most efficient method for loading widgets in functions.php
- PHP files included in functions.php don’t seem to work
- Include files in child themes, declare in functions.php
- using `require` in my functions.php breaks the site
- Calling a Function in Functions.php from an external PHP script
- Automatically include all php files in a child theme directory
- Impossible to call wordpress function inside an include?
- wp_star_rating() – Adding a 5 star rating system to theme
- Unable to point the child theme directory even using get_stylesheet_directory()
- Can I include a custom PHP function in a WordPress function?
- file.php not loaded?
- Why should I use get_template_directory() when include files?
- WordPress functions.php conditional include another functions file
- Including admin-options.php file in Child Themes
- Undo a function that is not (seemingly) hooked to an action?
- Is it ok to use a function to output the text domain name in a wordpress theme
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Issue with wp_get_attachment_image() and SVG file type
- How to override a function when isn’t at functions.php
- deregister scripts on certain page
- contactform7 remove tags with “wpcf7_autop false” from functions.php
- How to count number of functions attached to an action hook?
- Show modified time if post is actually modified
- ajax live search for post title
- How to get an array of menu items from the toolbar?
- Using get_terms for custom taxonomy in functions.php
- Fatal error: Call to undefined function add_action() – an untouched problem
- Hide some items from Screen options in dashboard for products
- Editing or filtering the output of the Genesis navigation
- Automatically Add Specified Value to Attachment Metadata upon Upload
- Twenty Eleven Child theme error when attempting to use a rewritten function
- edit role display name and label name without plugins
- is_plugin_active() not properly returning true
- Display gallery on top before content
- List of Body Classes Generated by body_class()
- Converting html to wordpress images not showing
- is_dynamic_sidebar always returns true while using Jetpack visibility
- Redirect specific page in WordPress for first time visit
- How can I add text to all posts/pages/categories/homepage etc
- qTranslate in functions.php
- Using Schema with `the_excerpt`
- Image rotation fails to regenerate custom sized thumbnail
- Move Post to different category if post_meta field is 0 or is 2 days old?
- Display alert on successful user Sign Up
- Getting different functions data while using while loop in wordpress
- How to rewrite the custom url in wordpress?
- Set spesific size of featured images
- Excerpts are not displayed by a shortcode on category pages
- Getting comment count per post not working
- Functions.php Problem
- It does not work concatenation in function.php
- How would I go about replacing this function in my child theme located in inc/template-tags.php
- Condition OR for current user ID
- Retrieve a value from Yoast SEO to use to set a default twitter card image honoring overrides
- Get arguments from URL
- Dequeue script to prevent javascript event conflict on wordpress child theme
- While loop with an exception after a count is reached
- Return child theme url
- Passing global variable from header.php to functions.php
- How is $current_page passed in woocommerce_account_orders function?
- Upgraded server now class My_Walker_Nav_Menu extends Walker_Nav_Menu not working
- Functions php shortcode for displaying main menu with no child items
- How to include any template using Shortcode fuction?
- display a div on ervery site but not frontpage?
- Do we need to change our child function.php to require/include child dir files when we add an over-riding file.php into the child theme
- Replace header image on all other pages but home – URL issue
- Child theme functions.php
- How to echo Widget Title in Custom Frontend-Template Box
- Redirect to post after publish or update a published post
- Page Template Won’t Load Correct CSS File
- Getting images from media library and get_the_date() not working
- WordPress show bad the php hour and date
- Using add_image_size in functions.php to get original uploaded file
- show all the posts thumbnails
- can’t access some WordPress function from my plugin
- the_excerpt function not showing image
- Use a filter for wp_robots to block CPT/feed/
- How do I change where “You must be logged in to comment” directs users?
- Login cookies blocked after customizing hashing method
- Order column custom date using pre_get_posts
- query_vars treat as single var from URL
- Running javascript without hooking wp_head
- Remove text after a dot and a colon in Woocommerce product title
- Enable CORS Request for hostname using IP address
- Change default color scheme in twentyfifteen child theme?
- Restrict access if logged out except for homepage
- Add meta data in head from theme
- what is `get_section()` and how to use it?
- DISABLE wordpress upgrade page
- How to echo the translated custom field?
- Only Show One Category Name Per Post
- Moving CDN jQuery to footer does not work?
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- update_usermeta don’t work
- Hiding Google Analytics code based on theme options
- How do I make my child theme’s CSS update when I save it?