$e->getMessage(), 'file' => $e->getFile(), 'line' => $e->getLine(), 'trace' => $e->getTraceAsString(), ], true ) ); } deactivate_plugins( plugin_basename( __FILE__ ) ); wp_die( sprintf( 'Activation error: %s', esc_html( $e->getMessage() ) ) ); } }//end method cbxgooglemap_activate /** * The code that runs during plugin deactivation. * This action is documented in includes/class-cbxgooglemap-deactivator.php */ function cbxgooglemap_deactivate() { CBXGooglemapHelper::deactivate(); } /** * Initialize the plugin manually * * @return CBXGoogleMap|null */ function cbxgooglemap_core() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid global $cbxgooglemap_core; if ( ! isset( $cbxgooglemap_core ) ) { $cbxgooglemap_core = cbxgooglemap_run(); } return $cbxgooglemap_core; }//end method cbxgooglemap_core /** * 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. * * @since 1.0.0 */ function cbxgooglemap_run() { return CBXGoogleMap::instance(); }//end method cbxgooglemap_run $GLOBALS['cbxgooglemap_core'] = cbxgooglemap_run();