What is it and from where it is loaded?

This is from a dynamic hook that’s generated in the wp-admin/admin.php file and fires right after the admin_init action. Here’s the inline documentation for the core screens part: /** * Fires before a particular screen is loaded. * * The load-* hook fires in a number of contexts. This hook is for core screens. * … Read more

How to delete a theme using AJAX

You can do this by creating a post form with a nonce field… $url = admin_url(‘admin-ajax.php’); echo ‘<form action=”‘.$url.'” method=’post’>’; echo ‘<input type=”hidden” name=”action” value=”delete_theme”>’; wp_nonce_field(‘updates’); // to pass check_admin_referer echo ‘<input type=”hidden” name=”slug” value=”twentythirteen”>’; echo ‘<input type=”submit” value=”Delete TwentyThirteen Theme”>’; echo ‘</form>’; You can replace the hard-coded slug input field with a <select> one … Read more

Hosting multiple sites

If these sites are going to be distinctly different entities, then you are going to want to set up individual sites with individual databases. Especially if these are for different clients. The domain names will be handled by the hosting company and there should be something in cPanel that will facilitate that.

How to add/change (woocommerce) product tab icon

It seems that these icons are just added with a CSS ::before selector. So if you have something like that to set up your custom tab: function woocommerce_product_write_panel_tabs(){ ?> <li class=”custom_tab”> <a href=”#custom_tab_data_mytab”> <?php _e(‘My Custom Tab’, ‘textdomain’); ?> </a> </li> <?php } Than you should be able to style the a::before with something like … Read more

Code not working with post name Permalink Settings Help

I’m not sure why you’re getting a 404, because when I run your code with permalinks = “Post name” it runs fine. However, I would suggest you use remove_query_arg() instead of all the machinations you’re doing to produce the URL to redirect to. That is, you can simplify your code down to: function affiliate_redirect () … Read more