Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

The tag has no usage guidance.

-2
votes
1answer
28 views

How to make changes to wordpress core files and make them resistant to wordpress updates?

I have my WordPress setup on IIS and it is rewritten. Because of that I found some probably bug in wp_includes/canonical.php file. I think that when I update my WordPress that all my changes will ...
1
vote
0answers
12 views

StoreFront product pages: Turn the Short Description section into a kindred tab section [closed]

In StoreFront how do I turn the Short Description section into a kindred tab section beside the Long Description, Additional Information and Review tabs?
0
votes
1answer
37 views

Custom Wordpress Core upgrade through wp-cli

I'm trying to do a custom wordpress core upgrade through wp-cli, theres an GUI upgrade hang issue in kubernetes when AWS EFS storage is used. For me wp core upgrade works great. I need somekind of ...
0
votes
0answers
108 views

Wordpress update hangs on AWS EFS

Our wordpress is running on kubernetes, the GUI "1-click" update hangs at Unpacking the update…, i can see the upgrade downloaded and unpacked at wp-content/upgrade directory. Tried various settings ...
0
votes
1answer
71 views

Add Password Generator on password protected page

I'm looking for add a password generator with 14 characters on the protected pages like in the picture. I search something like what is used when you create users but for page password.
0
votes
1answer
32 views

How does WordPress get the upgrade URL?

Can anyone point me to the location in the code where WordPress gets the core update url (eg: https://downloads.wordpress.org/release/en_AU/wordpress-4.8.2.zip)?
1
vote
1answer
87 views

How to contribute to WordPress Core using Tortoise SVN?

I am expecting step by step guide how to submit patch using Tortoise SVN because it is little bit unclear the documentation for me. For a example, it said, "Open the folder, and find the file you ...
1
vote
1answer
300 views

How can I add my script to admin using script-loader.php?

I'm trying to load my custom script in the admin panel using the same method that WordPress itself loads scripts in the admin area. This is an example script being loaded by wp-includes/script-loader....
0
votes
1answer
196 views

How to modify files inside wp-includes directory in wordpress

I want to modify wp-includes/general-template.php function _wp_render_title_tag() {} Need to allow some limit to title tag, if title of the page will be more than 10 character then it should be ...
4
votes
1answer
386 views

How to edit or override a Core function?

I want to add a data argument to links generated by the paginate_links() function. Then, I can more easily extend my custom pagination to use AJAX. As far as I can tell, this function is not ...
0
votes
1answer
1k views

How to authenticate a user with an external webservice

I was asked to login wordpress with an external webservice and at the same time to use the original wordpress database, ie, the webservice would only obtain data for the user profile and its ...
0
votes
2answers
539 views

How to Dequeue All WordPress Assets

I want to dequeue all styles and scripts that are loaded on the front-end (EG. not the admin panel) by default. I found this function, but am not sure how to utilize it to accomplish my goal. I'm ...
1
vote
1answer
42 views

Create highly customized submenu (possibly using wp_list_pages)

I want to create a submenu that lists the parent page's children up to two levels. I have some code that works but I need to highly customize it. I don't understand the codex enough to figure out how ...
0
votes
0answers
185 views

How to make a plugin by customizing a wp core file (class-wp-widget-rss.php)

I need to customize a wp core file, but I know it's not recommended. How to turn this custom file into a plugin? The file I'm talking about is wp-includes/widgets/class-wp-widget-rss.php and I only ...
-1
votes
1answer
50 views

Enhancing core WordPress code for private and public projects?

I am having a hard time interpreting the WordPress license when it comes to core code. I have extracted one component, the WordPress Hooks system, and I have enhanced it in very specific ways to make ...
1
vote
1answer
2k views

Sort orders by custom order meta - Woocommerce Orders admin page

I'm trying to sort my Woocommerce orders by _payment_method on the 'Orders' admin screen (edit.php?post_type=shop_order). So far I am able to sort by 'Pay_by_phone', but it sorts everytime the page ...
1
vote
1answer
68 views

How to modify core when there is no hook?

I want to add a custom HTML5 attribute to the <form> element in the comments form. Since the form field itself is generated by comment_form(), and there is no hook to edit within the opening <...
0
votes
0answers
214 views

Object Cache - Avoid db queries totally

I am using object cache and have cached just about all queries but am stuck with the last 3, on a post archive page. They are all wp core queries. SELECT SQL_CALC_FOUND_ROWS wpm_posts.ID FROM ...
0
votes
1answer
330 views

Create custom WP_List_Table in post_type

I have a post type named "case". I want to create a "Sub-page" to list only my "cases". And add some custom HTML (search box, some labels, logos, etc..) Anyone knows how can I do this? Code to ...
1
vote
1answer
3k views

Edit admin post page

I have to customize the admin page where you edit the other pages "wp-admin/post.php". I have to add a lot of things, and delete others, change colors and add a custom menu to the top. I don't know ...
0
votes
1answer
33 views

Safely editing core files

I want to edit wp-comments-post.php so that if for example someone tries to post a comment with no content they will get a popup box telling them they cannot post an empty comment instead of the page ...
0
votes
1answer
199 views

disable WP_error: authentication_failed

I am modifying my wp-login.php but from within functions.php (in order not to hack the core). I need to disable one WP_error with code: authentication_failed. if i hack the core and modify wp-login....
1
vote
0answers
195 views

Alter wp_post table vs. post_meta performance/speed

I'm searching for the most efficient way to link a post to multiple users. By default each post in wp_post has a post_author column, which is linked to the corresponding user ID in wp_users. Assume ...
0
votes
0answers
183 views

Removing a line from a WP core function (comment_template.php) - filter or other technique?

a The effect I want to achieve - at least at this point - is simply to have the comment reply link continue to appear below comments even after "max_depth" for threaded comments has been reached. ...
0
votes
2answers
1k views

Where should I copy a PHP file from wp-includes to, in order to override it in my child theme?

I've seen plenty of questions about changing stuff inside wp-includes and plenty of answers saying don't, under any circumstances. However, I need to change something that's currently in there! I'm ...
1
vote
1answer
37 views

Use hooks for undo/redo admin actions?

Is it possible to implement a undo/redo by tracing admin actions? I know its gonna be a heavy task, but is it possible at all? Plugins aside of course, core is enough, though
6
votes
4answers
477 views

Cleaning up WordPress to improve performance?

Looking over the current WordPress codebase it's clear that functions are over-used. My count is over 8,100 functions/methods are defined inside the WordPress codebase. That is terrible, and a ...
1
vote
1answer
53 views

How to make this change without changing the core? [duplicate]

I couldn't find a way to change this in an upgrade friendly way, and I know I mustn't touch the core! I need to change the value 'number' to 10 in wp-includes/default-widgets.php wp_tag_cloud( ...
1
vote
1answer
202 views

How WordPress is able to change locale without using setlocale

In my plugin I print out the current locales via $originalLocales = explode(";", setlocale(LC_ALL, 0)); var_export($originalLocales);die; Obviously the result is same as the WPLANGdefined. ...
1
vote
1answer
492 views

Changing a WordPress core function without hacking core

I am looking to change one line within a core function. The function is wp_allow_comment() located within /wp-includes/comment.php function wp_allow_comment($commentdata) { global $wpdb; extract($...
0
votes
1answer
86 views

Why There Is No “get content by ID” Function

When i need to get content of a post with ID, I'm always using this function : function getContentByID($id) { //http://wordpress.stackexchange.com/questions/9667/get-wordpress-post-content-by-post-id ...
5
votes
1answer
2k views

Modifying the media-template.php file, the right way?

The [gallery] shortcode accepts the columns='0' as an attribute so that it doesn't insert any breaks in the HTML between gallery items, however this option is not available in Gallery Settings ...
4
votes
1answer
132 views

Why are double-periods (“..”) invalid in a Wordpress image filename?

ms-files.php contains the following code fragment: $file = rtrim( BLOGUPLOADDIR, '/' ) . '/' . str_replace( '..', '', $_GET[ 'file' ] ); if ( !is_file( $file ) ) { status_header( 404 ); die( '...
0
votes
2answers
854 views

Make changes of wp-db.php file persistent against updates

I've added $this->query("set session wait_timeout=600"); into wp-includes/wp-db.php file because of "MySQL has gone away" errors in every query and I need to find some way to do the changes in file ...
0
votes
4answers
438 views

Which core file is responsible for gravatars?

I realize modifying the core files is frowned against but I strongly believe that the WP core SHOULD NOT rely on external links. In my situation, I'm behind the Great Chinese Firewall, the gravatar ...
0
votes
3answers
634 views

Replace core wordpress file with my own

Editing core files is never an option. - the question is NOT to edit core files, but rather find a way to replace certain files using a plugin or other built in function. I require more control over ...
6
votes
3answers
1k views

How to disable core and plugin updates

Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.
1
vote
1answer
755 views

Removing subcategories from permalinks [duplicate]

I run a small news site with tens of thousands of entries. I'm currently importing all of these into wordpress by rebuilding our old CMS into wordpress. So far, everything is coming over smoothly. ...
5
votes
2answers
15k views

How can I modify what is being output in wp_head, whether by a theme or Wordpress in general?

I've been working on performance of my site using YSLOW, and noticed that Wordpress it outputting things in my document head that I know I don't need. For example, I'm already calling jQuery 1.9 from ...
2
votes
1answer
3k views

Headers already sent - Wordpress core

I'm getting an error on my site regarding "headers already sent": Warning: Cannot modify header information - headers already sent by (output started at ........./wp-admin/menu-header.php:161) in .....
7
votes
2answers
2k views

How to share WordPress core library

We have ten blogs running on a little EC2 instances, we want to see if all the blogs can share the same wordpress php code so When I update the Wordpress, all the blogs get updated Save memory in ...
7
votes
3answers
7k views

Possible to fix admin URL behind proxy issue without hacking core?

In a previous question I was trying to solve an issue where WordPress was using the wrong url in sortable column headers & pagination in the admin when behind a proxy, the only solution that ...
0
votes
3answers
2k views

What problems maybe happen if I remove “wp-” prefix from wordpress folders and files?

I want to hide wordpress signs from my site. So I don't want other people know that I built the website via WordPress. So I decided to remove wp- prefixes from all wordpress folders and files. And I ...
0
votes
1answer
3k views

How to: Avoid a bunch of useless Auto Draft ID entries related in posts table and disable autosave feature in 'post-new.php'?

I got it! Buuuuut I had to edit 2 core files, yes! 2 core files :( I know is not a cool plugin hack, but maybe a cool patch for WP, Im using 3.3.1 version. Well, here is my little hack/contribution: ...
11
votes
3answers
2k views

changing wp-admin/widgets.php

We want to design the widgets page in the admin panel a little differently, mainly in order to help the site administrator understand where each widget will appear in the site: For that, we need to ...
0
votes
1answer
238 views

How to remove wordpress admin bar in dashboard

I would like to rebrand wordpress. Can anyone tell me how to remove it from dashboard? Is there any hook available. Or I should edit core files. If i should edit core file can anyone tell me which ...
2
votes
1answer
3k views

Two domains on one Wordpress Installation

I recently changed the base domain on my Wordpress website from http://www.fsdegrees.com to http://www.56degrees.co.uk. I would like to create various of 301 from old domain to new one, but for some ...
10
votes
4answers
14k views

Add class to before_widget from within a custom widget

I have a simple custom widget that asks for its width (that is used later in the front end). The width field is a select dropdown, so a user have predefined options. I will have many instances of my ...