You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
727 B
PHTML

<?php
/**
* Metabox - Schema Tab
*
* @package RankMath
* @subpackage RankMath\Schema
*/
use RankMath\Helper;
defined( 'ABSPATH' ) || exit;
if ( ! Helper::has_cap( 'onpage_snippet' ) ) {
return;
}
$cmb->add_field(
[
'id' => 'rank_math_schema_generator',
'type' => 'raw',
'content' => '<div id="rank-math-schema-generator"></div>',
'save_field' => false,
]
);
$cmb->add_field(
[
'id' => 'rank-math-schemas',
'type' => 'textarea',
'classes' => 'hidden',
'save_field' => false,
]
);
$cmb->add_field(
[
'id' => 'rank-math-schemas-delete',
'type' => 'textarea',
'default' => '[]',
'classes' => 'hidden',
'save_field' => false,
]
);