Back to WordPress admin." ); } } } if( ! function_exists( 'afg_log' )): function afg_log( $message, $params = null ) { if( $params != null ){ $message = array( $message => $params ); } if( defined('WP_DEBUG') && WP_DEBUG === true ){ if( is_array( $message ) || is_object( $message ) ){ error_log( "\n" . print_r( $message, true ), 3, WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'debug.log' ); } else { error_log( "\n" . $message, 3, WP_CONTENT_DIR . DIRECTORY_SEPARATOR . 'debug.log' ); } } } endif; /** * The core plugin class that is used to define internationalization, * dashboard-specific hooks, and public-facing site hooks. */ require plugin_dir_path( __FILE__ ) . 'core/class-affiget-mini.php'; /** * Base class for all the exceptions thrown by the plugin. */ require plugin_dir_path( __FILE__ ) . 'core/class-affiget-exception.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. * * @since 1.0.0 */ global $affiget_mini; $affiget_mini = new AffiGet_Mini(); $affiget_mini->run();