// 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