// 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
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
/** 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
// 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
// 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
// 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
function add_alt_text_to_images( $html ) { // Check if the image has a title attribute if ( preg_match( ‘/(title=[“‘].*?[“‘])/’, $html, $matches ) ) { // Get the title $title = substr( $matches[0], 7, -1 ); // Check if the image has…Continue reading
function add_alt_text_to_images( $html ) { // Check if the image has a title attribute if ( preg_match( ‘/(title=[“‘].*?[“‘])/’, $html, $matches ) ) { // Get the title $title = substr( $matches[0], 7, -1 ); // Check if the image has…Continue reading
function send_welcome_email_on_transaction_completed($event) { $txn = $event->get_data(); // Get the transaction data MeprUtils::send_notices($txn, ‘MeprUserWelcomeEmail’, null, true); // Send the welcome email } add_action(‘mepr-event-transaction-completed’, ‘send_welcome_email_on_transaction_completed’);Continue reading
function sumobi_edd_show_terms_agreement() { global $edd_options; /*print_r($edd_options);*/ if ( isset( $edd_options[‘show_agree_to_terms’] ) ) { ?> <?php } } remove_action( 'edd_purchase_form_before_submit', 'edd_terms_agreement' ); add_action( 'edd_purchase_form_before_submit', 'sumobi_edd_show_terms_agreement' );Continue reading