'sanitize_text_field', ]); }); function command_post_settings_page() { $api_key = get_option('command_post_api_key', ''); $last_ping = get_option('command_post_last_ping', null); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- presence check only, no data read/processed; this is core's own Settings API redirect flag after options.php's nonce-protected save. $saved = isset($_GET['settings-updated']); ?>

Command Post

Settings saved.

Find your API key in the Command Post dashboard under your site's settings.


Status

WordPress version
PHP version
API key set
Next scheduled ping

Send ping now

ping(); wp_safe_redirect(admin_url('options-general.php?page=command-post&settings-updated=1')); exit; });