/** * This files creates all custom post types */ add_action( 'init', 'create_post_type' ); function create_post_type() { if( function_exists('acf_add_options_page') ) { $post_type_files = scandir_pathnames( SUPREVO_THEME_DIR_FUNCTIONS.'custom_post_types'. DIRECTORY_SEPARATOR , true, SCANDIR_FILETYPE_FILES ); foreach ( (array) $post_type_files as $post_type_file ) { if ( is_file( $post_type_file ) ) { require_once( $post_type_file ); } } } } ?> function register_theme_menus() { register_nav_menus( array( 'primary-menu' => __( 'Primair Menu' ), ) ); } add_action( 'init', 'register_theme_menus' );