Files
roi-theme/wp-content/plugins/advanced-ads/deprecated/class-advanced-ads-plugin.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

70 lines
1.4 KiB
PHP
Executable File

<?php
/**
* Plugin file
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
*/
/**
* WordPress integration and definitions:
*
* @deprecated 2.0 Use Advanced_Ads
*/
class Advanced_Ads_Plugin {
/**
* Instance of Advanced_Ads_Plugin
*
* @var object Advanced_Ads_Plugin
*/
protected static $instance;
/**
* Plugin options
*
* @var array $options
*/
protected $options;
/**
* Get instance of Advanced_Ads_Plugin
*/
public static function get_instance() {
_deprecated_file( __CLASS__, '2.0', 'Advanced_Ads' );
// If the single instance hasn't been set, set it now.
if ( null === self::$instance ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Return plugin options these are the options updated by the user
*
* @deprecated 2.0 Use AdvancedAds\Options class instead.
*
* @return array $options
*/
public function options() {
_deprecated_function( __METHOD__, '2.0', "AdvancedAds\Options::get_instance()->get_options('advanced-ads')" );
return Advanced_Ads::get_instance()->options();
}
/**
* Get prefix used for frontend elements
*
* @deprecated 2.0 Use wp_advads()->get_frontend_prefix().
*
* @return string
*/
public function get_frontend_prefix() {
_deprecated_function( __METHOD__, '2.0', 'wp_advads()->get_frontend_prefix()' );
return wp_advads()->get_frontend_prefix();
}
}