Skip to content

Instantly share code, notes, and snippets.

@bmoredrew
Last active January 2, 2016 08:39
Show Gist options
  • Save bmoredrew/8278090 to your computer and use it in GitHub Desktop.
Save bmoredrew/8278090 to your computer and use it in GitHub Desktop.
Example of including functions in array
<?php
$my_theme = TEMPLATEPATH . '/inc/';
$includes = array(
$my_theme . 'theme-functions.php', // Custom Theme Functions
$my_theme . 'theme-custom-post-types.php', // CPT's
$my_theme . 'fields/init.php', // Custom Fields
$my_theme . 'stripe/lib.php' // Integrate Stripe
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment