Articles of core

Filter an WordPress Function in (general-template.php)

Sorry if it’s a duplicate question, I just want to change a little the WordPress core function get_header() with new function new_get_header(). function new_get_header() { // new header fragments; } Is this possible? add_filter( ‘get_header’, ‘new_get_header’ ); Or should I use: add_action( ‘init’, ‘new_get_header’ ); And call it as a function instead of original. new_get_header(); […]

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 seeing a ton of assets that I don’t need on the front end, loaded by WP core: […]

WP_Remote_Get Not working

I have a plugin which uses wp_remote_get() and it’s not working on my nginx server so I decided to test this. I created a file called test.php and inserted: <?php $response = wp_remote_get( ‘’ ); print $response [‘body’]; ?> When I run this file I am getting error: 2017/02/04 16:22:31 [error] 16573#16573: *461100 FastCGI sent […]

Do I need to use jQuery for my template?

I know that jQuery is used as part of the WordPress core, and it comes as standard when creating a jQuery template. I was wondering, however, if it is possible to avoid using jQuery as part of a template and use an alternative, D3, for instance?

In which folder can we find the core wordpress Widgets such as Menu Widget

I am a novice in WordPress theme development. I am trying to build a custom Code menu widget for the footer, which is totally different from the default menu widget provided by the WordPress, but I could not understand from where to start. The best will be If I can find the default widget created […]

What is it and from where it is loaded?

I am new at wordpress. I found a hook in theme back-combat.php file which is prevents to load previous version of wordpress for current theme customization. such as add_action(‘load-customize.php’, ‘my_function_name’); My question is what is this hook and from where it is loaded because load-customize.php and which way I can learn quick about wordpress core […]

Change Password Hint

I want to change the password hint on the password reset screen. Currently, it says “Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! ” ? $ % ^ & ).” I’ve identified the location of the hint text […]

Is there a wp-config.php option or constant that I can set to allow me to download nightly / beta builds?

Nightly Builds or Beta Releases? I like using the /wp-admin/update-core.php utility to update wordpress. But I’d like to be able to use it to download beta releases or nightly builds. Does anybody know of a way to enable this? Perhaps a constant or option in wp-config.php?

how does the rendering works?

i am trying to get a rough idea about how WordPress renders the final content, built-in and plugin content. Rendering means to me, manipulating direct or indirect(delay via ajax,..) the DOM. To keep things and this question simple and short, how far would be WordPress away from this rough pipe illustrated below: Render pass 1: […]

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 redirect that happens at the moment. if ( ” == $comment_content ) { wp_die( __( ‘<strong>ERROR</strong>: please type […]