Some do, a number of core functions is specifically designated pluggable and contained in pluggable.php
for exactly this purpose.
It is also quite a messy approach and is often regretted it’s a thing at all.
The problems are loosely:
- the replacement works exactly once;
- letting extensions mess with core definitions can lead to very volatile results.
The problem with letting developers modify core files is often not how to allow this, but how to make it unnecessary. The latter is much more reasonable approach and basis for WP’s strong extensibility and success of its hooks API.
Related Posts:
- What’s the difference between get_home_path() and ABSPATH?
- Modifying WordPress core files
- Why do some core functions get wp_ while others do not? What’s the rule?
- $GLOBALS array for WordPress
- What are custom_css and customize_changeset used for?
- IP address whitelist to update WordPress core and plugins
- What are some reasons why you should not hack WordPress core files?
- How To/What triggers a WordPress auto update?
- Rewriting a core function?
- What is the purpose of this line of code in wp_trim_excerpt? [closed]
- What CSS minifier does WP core use?
- What’s $GLOBALS[‘wp_settings’][‘media’][’embeds’]?
- Function to change a label (Username) in a core WordPress File (wp-includes/general-template.php)
- How do I set a custom WordPress update repository?
- WordPress classes explained
- No longer able to attach S3 bucket files to emails being sent by WordPress due to PHPMailer security update
- What problems maybe happen if I remove “wp-” prefix from wordpress folders and files?
- WP Core: Where are terms populated for the admin edit screen?
- What is the WP_Internal_Pointers core class?
- How to contribute to WordPress Core using Tortoise SVN?
- Create a patch using TortoiseSVN
- Loading WP core Thickbox through frontend
- Isn’t requiring a file before it’s loaded by WordPress itself a symptom of bad code? [closed]
- How to find out where the data.model is?
- how does the rendering works?
- When is the wp-mail.php in the WP root requested?
- Is the information returned by get_bloginfo( ‘version’ ) always the same as the one in version.php?
- How to add a forward slash to the end of wordpress home?
- Using native wp image support instead of timthumb
- Should /wp-includes/js/* folder be blocked in robots.txt file for a WordPress website?
- Can mediaelement-and-play core JS be dequeued?
- WordPress auto update for core but use local package
- WordPress 4.8 – Can’t find variable: wp
- What is responsible for triggering “robots-template.php” file or “wp_robots_noindex()” core function out of it?
- Add image or video tags to WP Sitemap
- Where can I find the definitive list of core blocks in html form
- When do we use wp_slash?
- Azure VM Core vs vCPU
- What is the role and history of the $content_width global variable?
- Easiest Way to Create a Patch for Submission to WordPress Core?
- WordPress 5.3 update causes media library file upload to break – Cannot convert undefined or null to object
- What is in media-template.php, and how does it work?
- Update to older wordpress version from admin?
- Why does get_term() require taxonomy? Are term_ids not unique?
- “Unexpected error” on update requests
- What’s $object->filter for?
- Understanding SHORTINIT with WordPress 5
- WordPress get_posts function, 1300 lines long
- Are the WordPress Core CSS styles really all nessesary?
- Managing WP Core & Plugin Updates for Clients
- Change the login button on the login page
- Updating WordPress – the best approach (updating wp core, plugins and db)
- How to Modify a Widgets UL and/or LI Classes
- Question about the template-loader.php file
- How does WP detect format type (and can I make use of this)?
- Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?
- How to start a script from cli within wordpress
- Remove annoying WP Adminbar CSS
- Add More Fields to Users Pages (Admin Panel)
- How do I implement a .diff changeset from core.trac.wordpress.org locally?
- Huge debug.log because of “undefined offset in media.php”
- How do action and filter hooks understand where to look for the core function that we hooked our function to them
- error: An Unexpected HTTP Error occurred during the API request
- Show notice just below the search form on the themes page
- Use register_setting() in a loop
- How to display post categories within the Latest Posts block?
- Filters/Bulk Actions return wrong URL in admin dashboard
- Is there a way to schedule automatic WordPress core updates?
- Why does the usermeta table contain html entities?
- Does get_the_content_feed strip invalid tags?
- WordPress and a secondary database?
- Override has_post_thumbnail function
- What’s causing this error? “Warning: Invalid argument”
- Avoiding ACF get_field and returning to core WordPress function
- Timezone is wrong when picking city (Copenhagen)
- How to edit the Tags within the image file URLs?
- WordPress Heartbeat API cannot parse data
- What Generated Classes and IDs That Is Always Used On All Themes?
- Cannot redeclare wp_update_core()
- Possible to add a statement to a core file?
- Most wp_nav_menu parameters ignored
- In which folder can we find the core wordpress Widgets such as Menu Widget
- What is it and from where it is loaded?
- What do WordPress auto updates include?
- What would make the plugin update process to complete but don’t report as such?
- Disable “auto embed” feature when pasting text and links
- Create custom page to author.php
- Trying to get property ‘ID’ of non-object in /wp-includes/class-wp-query.php on line 4044
- Get the name WordPress default theme in the core
- Gutenberg button removed on save if its empty
- Login cookies blocked after customizing hashing method
- IP Address Whitelist to Allow WordPress Core Auto Updates
- Cannot update WordPress Core via admin dashboard
- Integrate separate web app inside wordpress [closed]
- Custom WordPress Core upgrade through wp-cli
- Location of customizer Menu panel core code
- Override default password nag in WordPress
- How can precision be improved for the debug log timestamp?
- Set link dialog to open in blank by default
- Remote database access on another wordpress site’s custom post type