- added REST API version;

- avoid the conflicts (added prefixes for query vars);
This commit is contained in:
nikitasinelnikov
2019-04-10 15:00:13 +03:00
parent 8f60eef636
commit dcfb9b0566
7 changed files with 1721 additions and 1163 deletions
@@ -1073,6 +1073,16 @@ if ( ! class_exists( 'um\admin\core\Admin_Settings' ) ) {
'label' => __( 'Enable Gutenberg Blocks', 'ultimate-member' ),
'tooltip' => __( 'Check this box if you would like to use Ultimate Member blocks in Gutenberg editor. Important some themes have the conflicts with Gutenberg editor.', 'ultimate-member' ),
),
array(
'id' => 'rest_api_version',
'type' => 'select',
'label' => __( 'REST API version','ultimate-member' ),
'tooltip' => __( 'This controls the REST API version, we recommend to use the last version', 'ultimate-member' ),
'options' => array(
'1.0' => __( '1.0 version', 'ultimate-member' ),
'2.0' => __( '2.0 version', 'ultimate-member' ),
),
),
array(
'id' => 'uninstall_on_delete',
'type' => 'checkbox',