*/ if ( !defined( 'ABSPATH' ) ) die( 'Eh! What you doin in here?' ); /** * Load classes * * @since 1.0 * @author Ryan Hellyer */ require( 'inc/class-uh-taxonomy-header-images.php' ); require( 'inc/class-uh-post-header-images.php' ); require( 'inc/class-kd-multiple-featured-images.php' ); /** * Define constants * * @since 1.0 * @author Ryan Hellyer */ define( 'UNIQUEHEADERS_DIR', dirname( __FILE__ ) . '/' ); // Plugin folder DIR define( 'UNIQUEHEADERS_URL', WP_PLUGIN_URL . '/' . basename( UNIQUEHEADERS_DIR ) . '' ); // Plugin folder URL /** * Instantiate classes * * @since 1.0 * @author Ryan Hellyer */ new UH_Taxonomy_Header_Images(); new UH_Post_Header_Images(); $args = array( 'id' => 'custom-header', 'post_type' => 'post', // Set this to post or page 'labels' => array( 'name' => __( 'Custom header', 'unique_headers' ), 'set' => __( 'Set custom header', 'unique_headers' ), 'remove' => __( 'Remove custom header', 'unique_headers' ), 'use' => __( 'Use custom header', 'unique_headers' ), ) ); new kdMultipleFeaturedImages( $args ); $args['post_type'] = 'page'; new kdMultipleFeaturedImages( $args );