Add these constants to the wp-config.php file.
Use this constant to enable verbose logging. WordPress error logs must be enabled.
define( 'CM_DEBUG', 'verbose' );
Define the number of items that are processed in one chunk (i.e. in one Ajax call) during the troubleshooting routines. The default is 30.
define( 'TAG_GROUPS_CHUNK_SIZE', 10 );
Define the maximum time in milliseconds that one chunk is allowed to take. The default is 10 * 1000 (10 seconds).
define( 'TAG_GROUPS_CHUNK_TIMEOUT', 20000 );
Define the maximum time in milliseconds that one task is allowed to take. The default is 5 * 60 * 1000 (5 minutes).
define( 'TAG_GROUPS_TASK_TIMEOUT', 500000 );
By default the REST API is read-only. Set this constant to TRUE to make it editable (experimental).
define( 'TAG_GROUPS_REST_API_EDITABLE', TRUE );
By default Tag Groups rebuilds some caches after it has been invalidated by registering a new CRON job. Use this constant to disable this behavior.
define( 'TAG_GROUPS_DISABLE_CACHE_REBUILD', TRUE );
This constant lets you define additional fields that will be whitelisted when saving a term (tag) on the backend.
If you set it to TRUE, the following fields will be allowed:
action _wp_original_http_referer _wpnonce _wp_http_referer term-group tag-groups-nonce tag-groups-taxonomy
You can also use an array to set any name and the corresponding sanitation callback:
define( 'TAG_GROUPS_ADDITIONAL_TERM_ARGS', array( 'tag-image' => 'sanitize_text_field' ));
Permitted callbacks are:
intval sanitize_email sanitize_file_name sanitize_html_class sanitize_key sanitize_meta sanitize_mime_type sanitize_option sanitize_sql_orderby sanitize_text_field sanitize_textarea_field sanitize_title sanitize_title_for_query sanitize_title_with_dashes sanitize_user