Advertisement

WordPress Rest API parameters mappings

This array defines mappings between public API query parameters whose values are accepted as-passed, and their internal WP_Query parameter name equivalents (some are the same). Only values which are also present in registered will be set. Below is the list of all the endpoints which have query parameters mapping: wp/v2/comments wp/v2/<post-type> wp/v2/<taxonomy> wp/v2/<term> wp/v2/<users> Check below

Advertisement

Profiling with Blackfire for WordPress

Setup a Blackfire profiling tool on your local machine ( I’m installing it on Windows ). Profiling help developer to analyze their coding performance. Find unwanted calls/memory issues and helps to optimize all the possible issues. Installation Create Empty Folder We can set up the Blackfire in any directory. I’m installing it in directory C:\Program Files\. Create an empty folder

add_editor_style() does not seem to be implemented properly.

While developing WordPress theme you see the message: RECOMMENDED: add_editor_style() does not seem to be implemented properly. The reason is your themes style.css load ONLY ON front end. So, While writing article end user not have an idea how it looks on front end. # Why editor style is recommended? The reason is end user does not

Advertisement

Create TinyMCE buttons in WordPress

To create MCE buttons to your WordPress tiny editor, just follow below 2 steps. Step-1: Add following code to your function.php file. This file found at /wp-content/themes/YOUR_THEME/function.php. /* CREATE TINY EDITOR BUTTONS */ // Hooks your functions into the correct filters function my_add_mce_button() { // check user permissions if ( !current_user_can( ‘edit_posts’ ) && !current_user_can(

Advertisement