All posts tagged wordpress

Nginx config for webp images

# WebP Express rules # -------------------- location ~* ^/?wp-content/.*\.(png|jpe?g)$ { add_header Vary Accept; expires 365d; if ($http_accept !~* "webp"){ break; } try_files /wp-content/webp-express/webp-images/doc-root/$uri.webp $uri.webp /wp-content/plugins/webp-express/wod/webp-on-demand.php?xsource=x$request_filename&wp-content=wp-content ; } # Route requests for non-existing webps to the converter location ~* ^/?wp-content/.*\.(png|jpe?g)\.webp$ { try_files $uri /wp-content/plugins/webp-express/wod/webp-realizer.php?xdestination=x$request_filename&wp-content=wp-content ; } # ------------------- (WebP Express ru

Disable xml-rpc

How to Disable XML-RPC in WordPress 3.5 All you have to do is paste the following code in a site-specific plugin: 1 add_filter('xmlrpc_enabled', '__return_false'); Alternatively, you can just install the plugin called Disable XML-RPC. All you have to do is activate it. It does the exact same thing as the code . . . Read more

WordPress REST API

  WordPress REST API Quickstart Best: https://rudrastyh.com/wordpress/rest-api-create-delete-posts.html   https://github.com/Automattic/wp-rest-php-lib