Hacks

Enabling SmartSlider3 Support for the Editor Role

By default, the SmartSlider3 plugin only allows administrators to create/edit/delete sliders. In many cases, administrators may want to grant editors the ability to manage sliders. To do that, the following code can be placed in the active theme’s functions.php file (or in a plugin). /** * Give editors access to SmartSlider3 * * @see: https://developer.wordpress.org/plugins/users/roles-and-capabilities/ …

Enabling SmartSlider3 Support for the Editor Role Read More »

Overcoming the “Cross-Origin Request Blocked” error in PHP

I was making an AJAX call and was getting a “Cross-Origin Request Blocked” error. It wasn’t clear where this error was originating, so I did a little research and here’s what I came up with. When the server determines that the script making the AJAX request is on a different domain, depending on the server …

Overcoming the “Cross-Origin Request Blocked” error in PHP Read More »