Files
roi-theme/wp-content/plugins/thrive-ab-page-testing/includes/class-thrive-ab-post-status.php
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- 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>
2025-11-03 21:04:30 -06:00

40 lines
1.1 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ab-page-testing
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
class Thrive_AB_Post_Status {
const VARIATION = 'tab_variation';
public static function init() {
add_action( 'init', array( __CLASS__, 'register_variation_status' ) );
}
public static function register_variation_status() {
$args = array(
'label' => __( 'TOP Variation', 'thrive-ab-page-testing' ),
'label_count' => _n_noop( 'TOP Variation (%s)', 'TOP Variations (%s)', 'thrive-ab-page-testing' ),
'public' => false,//posts shown in frontend ?
'internal' => false,//internal use?
'private' => false,//posts accessed by their url?
'protected' => true,//for own user see class-wp-query.php line 2895
'exclude_from_search' => false,
'show_in_admin_all_list' => false,//posts shown in admin lists?
'show_in_admin_status_list' => false,//lists among other statues
);
register_post_status( self::VARIATION, $args );
}
}
Thrive_AB_Post_Status::init();