$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; if( ! function_exists( 'afg_pre' )): function afg_pre( $message, $params = null ) { if( $params != null ){ $message = array( $message => $params ); } if( defined('WP_DEBUG') && WP_DEBUG === true ){ if( is_array( $message ) || is_object( $message ) ){ echo '
' . print_r( $message, true ) . '
'; } else { echo '
' . $message . '
'; } } } endif; /** * Base class for all the exceptions thrown by the plugin. */ require plugin_dir_path( __FILE__ ) . 'core/class-affiget-exception.php'; /** * 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'; /** * 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 */ //add_action( 'init', 'affiget_mini__start', 10 ); //function affiget_mini__start(){ global $affiget_mini; $affiget_mini = new AffiGet_Mini(); $affiget_mini->run(); //}