Swap picture in slider plugin

To change most things in WordPress, you do not edit HTML code directly. Usually there is an admin interface to make things simpler for end users. If you log into the wp-admin area of the site, there is likely either a plugin or a theme generating that end HTML, and they most likely have a … Read more

Troubleshooting Admin_Notice

Yup. I threw my test code in the top of the Hello Dolly plugin and there was the notice. That’s when I remembered that I was calling it within a namespace: So needed to referenced that so the WP action could access it: namespace My_Plugin; function my_mwe_admin_notice(){ echo ‘<div class=”notice notice-error”>’; echo ‘<h1>Notice this.</h1>’; echo … Read more

Hooking into the HTML header container

Unless a theme provides such a hook there is no way to do this with actions and filters. If a hook is provided then it will be theme specific, no generic WP solution exists. For a full list of the hooks that a theme should implement, see here: https://developer.wordpress.org/themes/advanced-topics/plugin-api-hooks/ At the moment this includes: wp_head() … Read more