If you notice that a site has Advanced Custom Fields wysiwyg toolbar buttons missing, it is likely because the ‘Basic’ toolbar is being displayed rather than the ‘Full’ toolbar. I was able to fix that issue and get them to show the Full toolbar by implementing the filter below. View the code on Gist. This […]
This class shows how to copy a file from one site to other sites within the same WordPress multisite network. This code uses wp_handle_sideload() to copy the file to all the sites on the network without attaching them to posts. If you DO want to attach the file to a post when it is sideloaded, you may want to […]
You can load a template file from your plugin using the template_include filter, with code similar to this: View the code on Gist. If you’re looking for something more robust that checks the child and parent themes before falling back to the plugin template, check out Gamajo Template Loader.
Typically, if I need to download a plugin or theme that’s running on a remote server, I connect to that server via FTP or SSH and transfer the files to my local machine. However, sometimes I don’t have access to the server for one reason or another, but I DO have the username and password to […]
One of my clients requested the ability to insert Facebook Conversion Pixel code into her company’s webpages. If you’re not familiar, conversion tracking helps businesses measure the return on investment of their Facebook Ads by reporting on the actions people take after their ads are served. So if you’re running an ad on Facebook and […]
You’ve been there. Browsing the web, opening new browser tabs as you go, when suddenly, out of nowhere, unwelcome and unsolicited noise begins issuing from your computer speakers! One of the webpages you have opened has an embedded video that is playing. You frantically switch from tab to tab, scrolling up and down pages trying […]