42 lines
854 B
PHP
42 lines
854 B
PHP
<?php
|
|
/**
|
|
* @package OCVM
|
|
* @category Core
|
|
* @author one.com
|
|
*/
|
|
|
|
// If this file is called directly, abort.
|
|
if ( ! defined( 'WPINC' ) ) {
|
|
die;
|
|
}
|
|
|
|
//define text domain
|
|
if ( ! defined( 'OCVM_PLUGIN_DOMAIN' ) ) {
|
|
define( 'OCVM_PLUGIN_DOMAIN', 'ocvm' );
|
|
}
|
|
|
|
if ( ! defined( 'OCVM_PLUGIN_DIR_URL' ) ) {
|
|
define( 'OCVM_PLUGIN_DIR_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__ ) . 'classes/class-ocvm.php';
|
|
|
|
/**
|
|
* Begins execution of the module.
|
|
*
|
|
* Since everything within the module is registered via hooks,
|
|
* then kicking off the module from this point in the file does
|
|
* not affect the page life cycle.
|
|
*
|
|
*/
|
|
function run_OCVM() {
|
|
|
|
$plugin = new OCVM();
|
|
$plugin->run();
|
|
}
|
|
|
|
run_OCVM();
|