function constants()
 {
     wcb_maybe_define('WCB_SESSION_POST_TYPE', 'wcb_session', 'wcb_session_post_type');
     wcb_maybe_define('WCB_SESSION_SLUG', 'session', 'wcb_session_slug');
     wcb_maybe_define('WCB_TRACK_TAXONOMY', 'wcb_track', 'wcb_track_taxonomy');
 }
예제 #2
0
<?php

require_once "lib/utils/functions.php";
wcb_maybe_define('WCB_DIR', dirname(__FILE__));
wcb_maybe_define('WCB_URL', get_template_directory_uri());
require_once "lib/class-wcb-manager.php";
 function constants()
 {
     wcb_maybe_define('WCB_SPEAKER_POST_TYPE', 'wcb_speaker', 'wcb_speaker_post_type');
     wcb_maybe_define('WCB_SPEAKER_SLUG', 'speaker', 'wcb_speaker_slug');
 }
 function constants()
 {
     wcb_maybe_define('WCB_LIB_DIR', WCB_DIR . '/lib');
     wcb_maybe_define('WCB_LIB_URL', WCB_URL . '/lib');
 }