'26016', 'slug' => '24tt-document-verifier', 'type' => 'plugin', 'public_key' => 'pk_a31f5117310b55692269ef112e313', 'is_premium' => false, 'has_addons' => false, 'has_paid_plans' => false, 'is_org_compliant' => true, 'menu' => array( 'account' => false, 'support' => false, ), ) ); } return $ttdvr_fs; } // Init Freemius. ttdvr_fs(); // Signal that SDK was initiated. do_action( 'ttdvr_fs_loaded' ); } // --- FREEMIUS SDK INTEGRATION END --- /** * Define Plugin Constants for easy reference throughout the codebase. */ define( 'TTDVR_VERSION', '2.2.0' ); define( 'TTDVR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'TTDVR_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); /** * The core plugin class that is used to define internationalization, * admin-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'includes/class-ttdvr-core.php'; /** * Begins execution of the plugin. * * Since everything within the plugin is registered via hooks, * then kicking off the plugin from this point in the file does * not affect the page life cycle. */ function run_ttdvr() { $plugin = new TTDVR_Core(); $plugin->run(); } run_ttdvr(); /** * Activation Hook * Securely sets up the required role capabilities for administrators. */ register_activation_hook( __FILE__, 'ttdvr_activate_plugin' ); function ttdvr_activate_plugin() { $role = get_role( 'administrator' ); if ( ! empty( $role ) ) { $role->add_cap( 'manage_ttdvr_documents' ); } } /** * Deactivation Hook * We intentionally leave capabilities in place to prevent data loss * in case of accidental deactivation. */ register_deactivation_hook( __FILE__, 'ttdvr_deactivate_plugin' ); function ttdvr_deactivate_plugin() { // Future cleanup logic goes here if needed. }