Skip to content

Instantly share code, notes, and snippets.

@bryanmonzon
Created March 14, 2014 23:14
Show Gist options
  • Save bryanmonzon/9559009 to your computer and use it in GitHub Desktop.
Save bryanmonzon/9559009 to your computer and use it in GitHub Desktop.
functions init file
<?php
/**
* Functions File
*
* @package WordPress
* @subpackage Imag
* @since 1.0
*/
/**
* Define the version in case we need to do version checks.
*/
if ( ! defined( 'IMAG_VERSION' ) )
define( 'IMAG_VERSION', '1.0' );
/**
* Init the required files. If you need to include a file,
* add it here. Keep it organized.
*
* @since 1.0
* @author Bryan Monzon <[email]>
* @return [type] [description]
*/
function imag_init()
{
//Load image functions/sizes
require_once get_stylesheet_directory() . '/includes/images.php';
//Load the scripts and styles
require_once get_stylesheet_directory() . '/includes/scripts.php';
//Load Misc Global Functions
require_once get_stylesheet_directory() . '/includes/misc.php';
//Load Story Meta Functions
require_once get_stylesheet_directory() . '/includes/stories/functions.php';
//Load Silde Functions
require_once get_stylesheet_directory() . '/includes/slides/functions.php';
require_once get_stylesheet_directory() . '/includes/slides/metabox-add.php';
}
add_action( 'init', 'imag_init' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment