Files
roi-theme/wp-content/plugins/loggedin/uninstall.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

32 lines
758 B
PHP
Executable File

<?php
/**
* Fired when the plugin is uninstalled.
*
* @link https://duckdev.com/products/loggedin-limit-active-logins/
* @license http://www.gnu.org/licenses/ GNU General Public License
* @category Core
* @package Loggedin
* @subpackage Uninstall
* @author Joel James <me@joelsays.com>
*/
// If uninstall not called from WordPress, then exit.
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
// Delete all options added by the plugin.
delete_option( 'loggedin_maximum' );
delete_option( 'loggedin_rating_notice' );
global $wpdb;
// Delete all meta values added by the plugin.
// phpcs:ignore
$wpdb->delete(
$wpdb->usermeta,
array(
// Review notice meta.
// phpcs:ignore
'meta_key' => 'loggedin_rating_notice_dismissed',
)
);