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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
<?php
/**
* Options.
*
* @package AdvancedAds
* @author Advanced Ads <info@wpadvancedads.com>
* @since 1.48.0
*/
namespace AdvancedAds\Modules\OneClick;
defined( 'ABSPATH' ) || exit;
/**
* Options.
*/
class Options {
const CONFIG_KEY = '_advads_pubguru_connect_config';
/**
* Read and Write pubguru config
*
* @param array $data Array of pubguru configuration.
*
* @return bool|array
*/
public static function pubguru_config( $data = null ) {
if ( null === $data ) {
return get_option( self::CONFIG_KEY );
}
if ( 'delete' === $data ) {
return delete_option( self::CONFIG_KEY );
}
return update_option( self::CONFIG_KEY, $data );
}
/**
* Read and Write pubguru module status
*
* @param string $module Module name.
* @param bool $status Module status.
*
* @return bool
*/
public static function module( $module, $status = null ): bool {
$option_key = 'pubguru_module_' . $module;
if ( null === $status ) {
return boolval( get_option( $option_key, false ) );
}
update_option( $option_key, $status );
return $status;
}
}