set_basename( false, __FILE__ ); } else { /** * Freemius SDK bootstrap (licensing, updates, upgrade flow). * Returns null when the SDK directory is missing (local development without vendor/freemius). * * @return Freemius|null */ function admirly_fs() { global $admirly_fs; if ( !isset( $admirly_fs ) ) { $start = __DIR__ . '/vendor/freemius/start.php'; if ( !file_exists( $start ) ) { $admirly_fs = null; return null; } require_once $start; $admirly_fs = fs_dynamic_init( array( 'id' => '41180', 'slug' => 'admirly', 'type' => 'plugin', 'public_key' => 'pk_753f82737a3108530968be1e50cb5', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'menu' => array( 'slug' => 'admirly', 'support' => false, 'parent' => array( 'slug' => 'options-general.php', ), ), 'is_live' => true, 'is_org_compliant' => true, ) ); } return $admirly_fs; } admirly_fs(); do_action( 'admirly_fs_loaded' ); } require_once ADMIRLY_DIR . 'src/autoload.php'; /** Freemius runs this instead of uninstall.php when the plugin is deleted. */ function admirly_after_uninstall() { Admirly\Wp\Uninstall::run(); } if ( admirly_fs() ) { admirly_fs()->add_action( 'after_uninstall', 'admirly_after_uninstall' ); } add_action( 'plugins_loaded', [Admirly\Plugin::class, 'boot'] ); register_activation_hook( __FILE__, [Admirly\Plugin::class, 'activate'] );