Posted on February 12, 2019Categories Technology, WordPressTags , , , , , , 5 Comments on nginx Installing WordPress In A Subdirectory

nginx Installing WordPress In A Subdirectory

We have recently run into a number of customers using Store Locator Plus® that are having issues with the new REST based geocoding system. It turns out that an overwhelming percentage of people that are having issues have WordPress installed in a subdirectory. Apparently not all subdirectory installs are created equal — if it is not done properly things break. What is a subdirectory install? A subdirectory install is one in which WordPress is installed in a directory within the … Continue reading “nginx Installing WordPress In A Subdirectory”

Posted on May 15, 2018Categories Plugin Development, WordPressTags , , , 3 Comments on Why WordPress REST Performance Sucks

Why WordPress REST Performance Sucks

WordPress REST performance sucks.   There, I said it.    Not because I dislike WordPress — in fact I think it is the best open source web application we have seen thus far.    It is a great piece of technology.    It even has the potential to be a great web application framework — in fact I use it for the Store Locator Plus managed service, MySLP. However, unless you are in 100% complete control of every component in the … Continue reading “Why WordPress REST Performance Sucks”

Posted on March 25, 2016Categories Plugin Development, WordPressTags , , ,   Leave a comment on Using PHP Anonymous Functions In WordPress

Using PHP Anonymous Functions In WordPress

Recently I published an article “Adding WordPress REST API Security To Basic CRUD Operations” where the permissions callback points directly to a function: register_rest_route( SLP_REST_SLUG . ‘/’ . $version, ‘/locations/’, array( ‘methods’ => WP_REST_Server::EDITABLE, ‘callback’ => array( $this, ‘add_location’ ) , ‘permission_callback’ => function () { return current_user_can( ‘manage_slp_user’ ); } , ‘args’ => array( ‘sl_store’ => array( ‘required’ => true ), ) ) ); This style of defining a function call is known in PHP as an anonymous function.   … Continue reading “Using PHP Anonymous Functions In WordPress”

Posted on March 24, 2016Categories Plugin Development, Security, WordPressTags , , , ,   Leave a comment on Adding WordPress REST API Security To Basic CRUD Operations

Adding WordPress REST API Security To Basic CRUD Operations

Work has been underway adding REST API functionality to the Store Locator Plus plugin.   Most people are familiar with the basic concept of using REST to fetch data from a remote server.   We use this every day when surfing the web using the basic premise of an HTTP GET protocol.   In short this is the simplest form of a REST “read” operation.   Go here, get this thing and show it to me. REST APIs get more exciting when … Continue reading “Adding WordPress REST API Security To Basic CRUD Operations”