- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
1.3 KiB
PHP
Executable File
45 lines
1.3 KiB
PHP
Executable File
<?php
|
|
/**
|
|
* IndexNow Options: Console tab.
|
|
*
|
|
* @since 1.0.56
|
|
* @package Rank_Math
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
$cmb->add_field(
|
|
[
|
|
'id' => 'indexnow_description',
|
|
'type' => 'raw',
|
|
'content' => '<div class="bing-api-description description"><p>' . esc_html__( 'Insert URLs to send to the IndexNow API (one per line, up to 10,000):', 'rank-math' ) . '</p></div>',
|
|
]
|
|
);
|
|
|
|
$cmb->add_field(
|
|
[
|
|
'id' => 'indexnow_urls',
|
|
'type' => 'textarea_small',
|
|
'sanitization_cb' => '__return_false',
|
|
'attributes' => [
|
|
'class' => 'instant-indexing-urls',
|
|
'placeholder' => trailingslashit( home_url() ) . _x( 'hello-world', 'URL slug placeholder', 'rank-math' ),
|
|
],
|
|
'after_field' => '<a href="#" id="indexnow_submit" class="button button-primary large-button" style="margin-top: 20px;">' . esc_html__( 'Submit URLs', 'rank-math' ) . '</a> <span class="spinner" id="indexnow_spinner"></span>',
|
|
]
|
|
);
|
|
|
|
$cmb->add_field(
|
|
[
|
|
'id' => 'educational_note',
|
|
'type' => 'notice',
|
|
'what' => 'info',
|
|
'save_field' => false,
|
|
'content' => sprintf(
|
|
/* translators: Note text */
|
|
esc_html__( '%s The URLs will be submitted to Bing and Yandex only, and not to Google.', 'rank-math' ),
|
|
'<b>' . esc_html__( 'Note:', 'rank-math' ) . '</b>'
|
|
),
|
|
]
|
|
);
|