What is the first action or filter executed by wordpress?

Here is nicely described what and when is loading and why. I recommend also this awesome plugin Query Monitor that helped me also to fix performance issues. in short: muplugins_loaded registered_taxonomy registered_post_type plugins_loaded sanitize_comment_cookies setup_theme unload_textdomain load_textdomain after_setup_theme auth_cookie_malformed auth_cookie_valid set_current_user init widgets_init register_sidebar wp_register_sidebar_widget wp_loaded parse_request send_headers parse_tax_query parse_query pre_get_posts posts_selection wp template_redirect wp_default_scripts … Read more

WordPress auto update for core but use local package

A list of options, easier ones first. Run WordPress as a multisite network, you can find instructions here: http://codex.wordpress.org/Create_A_Network Manually apply changes via .zip file and overwriting. Download latest zip from wordpress.org Make a backup of your file base per install Unpack the zip files then overwrite files in wp-admin and wp-includes. Overwrite root files … Read more

How to wait for WordPress Core to load when writing OOP?

The core problem is that you are not writing OOP. OOP is about identifying objects in your system, not actions. If you want to identify actions than you are better to follow functional design paradigms (and with wordpress hook system, functional design make much more sense). In your case redirect is an action, that probably … Read more

Override default password nag in WordPress

The function is hooked to an action, so you should be able to remove it. remove_action(‘admin_notices’,’default_password_nag’); You can then add back a function of your own choosing. Rename your function to something that won’t conflict with the Core function name and… add_action(‘admin_notices’,’my_password_nag’); You will need to create a plugin or mu-plugin to do it, but … Read more

Display Custom Column in CPT Taxonomy

The final working hooks that I was able to work out are: // adding an extra column to the event_cateogires page // to display the color function events_color_column($defaults) { $defaults[‘event_cat_color’] = ‘Event Category Color’; return $defaults; } function events_color_column_content($column_name, $post_ID) { echo ‘Event Color : #2432’; } add_filter(‘manage_edit-event_categories_columns’, ‘events_color_column’); add_action(‘manage_event_categories_custom_column’, ‘events_color_column_content’, 10, 2); Using the … Read more