run(); } add_action('plugins_loaded', 'ajejsmta_init'); /** * Activation hook. */ function ajejsmta_activate() { // Set default options $default_options = array( 'enabled' => true, 'position' => 'before', 'heading_levels' => array('h2', 'h3', 'h4'), 'min_headings' => 3, 'template' => 'minimal', 'show_toggle' => true, 'smooth_scroll' => true, 'counter_style' => 'decimal', ); add_option('ajejsmta_settings', $default_options); } register_activation_hook(__FILE__, 'ajejsmta_activate'); /** * Deactivation hook. */ function ajejsmta_deactivate() { // Clean up if needed } register_deactivation_hook(__FILE__, 'ajejsmta_deactivate');