feat: register custom post types (case, webinar, course, event, material)
This commit is contained in:
@@ -43,6 +43,7 @@ function bitwms_child_enqueue_styles() {
|
||||
|
||||
$bitwms_includes = array(
|
||||
'inc/enqueue.php',
|
||||
'inc/cpt.php',
|
||||
);
|
||||
|
||||
foreach ( $bitwms_includes as $bitwms_file ) {
|
||||
@@ -60,3 +61,11 @@ unset( $bitwms_file, $bitwms_path );
|
||||
add_action( 'generate_before_header', function () {
|
||||
get_template_part( 'templates/sidebar-nav' );
|
||||
} );
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 4. Inject top header bar (priority 20 — after sidebar at default/10)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
add_action( 'generate_before_header', function () {
|
||||
get_template_part( 'templates/top-header' );
|
||||
}, 20 );
|
||||
|
||||
Reference in New Issue
Block a user