Vacatures CPT – met taxonomies

// Registreer Custom Post Type: Vacatures function maak_vacatures_post_type() { $labels = array( ‘name’ => _x(‘Vacatures’, ‘Post Type Algemene Naam’, ‘textdomain’), ‘singular_name’ => _x(‘Vacature’, ‘Post Type Enkelvoudige Naam’, ‘textdomain’), ‘menu_name’ => __(‘Vacatures’, ‘textdomain’), ‘name_admin_bar’ => __(‘Vacature’, ‘textdomain’), ‘add_new_item’ => __(‘Nieuwe vacature…Continue reading

Berichten -> Blog

function rename_posts_to_nieuws() { global $menu, $submenu, $wp_post_types; // Rename menu item $menu[5][0] = ‘Blog’; $submenu[‘edit.php’][5][0] = ‘Alle blogposts’; $submenu[‘edit.php’][10][0] = ‘Nieuwe blogpost’; // Rename post object labels $labels = &$wp_post_types[‘post’]->labels; $labels->name = ‘Blog’; $labels->singular_name = ‘Blogpost’; $labels->add_new = ‘Nieuwe blogpost’;…Continue reading

ARCHIVE of Working Display Roster Entry

/** Display Roster Entry **/ // FOR DEBUGGING ONLY //$data = serialize(array(“Red”, “Green”, “Blue”)); //echo $data . ““; // //$test = unserialize($data); //var_dump($test); // $profile_id = um_profile_id(); $user = get_user($profile_id); $email = $user->email; //FOR DEBUGGING ONLY: // $email = “[email protected]”;…Continue reading

Display Roster Entry

/** Display Roster Entry **/ // FOR DEBUGGING ONLY //$data = serialize(array(“Red”, “Green”, “Blue”)); //echo $data . ““; // //$test = unserialize($data); //var_dump($test); // $profile_id = um_profile_id(); $user = get_user($profile_id); $email = $user->email; //FOR DEBUGGING ONLY: // $email = “[email protected]”;…Continue reading

Vestigingen CPT

// Registreer Custom Post Type: Vestigingen function registreer_vestigingen_post_type() { $labels = array( ‘name’ => _x(‘Vestigingen’, ‘Post Type Algemene Naam’, ‘textdomain’), ‘singular_name’ => _x(‘Vestiging’, ‘Post Type Enkelvoudige Naam’, ‘textdomain’), ‘menu_name’ => __(‘Vestigingen’, ‘textdomain’), ‘name_admin_bar’ => __(‘Vestiging’, ‘textdomain’), ‘archives’ => __(‘Vestiging archieven’,…Continue reading

Afdelingen CPT

// Registreer Custom Post Type: Afdelingen function registreer_afdelingen_post_type() { $labels = array( ‘name’ => _x(‘Afdelingen’, ‘Post Type Algemene Naam’, ‘textdomain’), ‘singular_name’ => _x(‘Afdeling’, ‘Post Type Enkelvoudige Naam’, ‘textdomain’), ‘menu_name’ => __(‘Afdelingen’, ‘textdomain’), ‘name_admin_bar’ => __(‘Afdeling’, ‘textdomain’), ‘archives’ => __(‘Afdeling archieven’,…Continue reading

Medewerkers / collega’s CPT

// Registreer Custom Post Type: Medewerkers function registreer_medewerkers_post_type() { $labels = array( ‘name’ => _x(‘Medewerkers’, ‘Post Type Algemene Naam’, ‘textdomain’), ‘singular_name’ => _x(‘Medewerker’, ‘Post Type Enkelvoudige Naam’, ‘textdomain’), ‘menu_name’ => __(‘Medewerkers’, ‘textdomain’), ‘name_admin_bar’ => __(‘Medewerker’, ‘textdomain’), ‘archives’ => __(‘Medewerker archieven’,…Continue reading

Make Elementor Default Editor

/** * Comprehensive solution to make Elementor the default editor * while keeping the “Edit with Elementor” option */ /** * Redirect default WordPress editor to Elementor editor */ function redirect_default_editor_to_elementor() { global $pagenow; // Check if we’re on the…Continue reading

MemberPress: Code Blocks Pro – Load All Currently Enqueued Styles In the Courses ReadyLaunch Template

function my_theme_enqueue_scripts() { wp_enqueue_style( ‘code-block’, ‘https://yourdomain.com/wp-content/plugins/code-block-pro/src/front/style.css’, [], ‘1.0.0’, ‘all’ ); wp_enqueue_style( ‘code-block-font’, ‘https://yourdomain.com/wp-content/plugins/code-block-pro/build/fonts/Code-Pro-JetBrains-Mono-NL.ttf’, [], ‘1.0.0’, ‘all’ ); wp_enqueue_style( ‘code-block-css’, ‘https://yourdomain.com/wp-content/plugins/code-block-pro/build/style-index.css’, [], ‘1.0.0’, ‘all’ ); } add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_scripts’ ); add_filter(‘mpcs_classroom_style_handles’, function($allowed_handles){ $allowed_handles[] = ‘code-block’; $allowed_handles[] = ‘code-block-font’; $allowed_handles[] = ‘code-block-css’;…Continue reading