feat: register custom post types (case, webinar, course, event, material)

This commit is contained in:
2026-04-03 01:07:25 +05:00
parent b47ad7bef4
commit 4019a565ec
2 changed files with 204 additions and 0 deletions
@@ -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 );