Lookup up current user’s fw_exp_date on My Profile page

// Create Ajax handler // add_action(‘wp_ajax_get_fw_exp_date’, ‘get_fw_exp_date_callback’); function get_fw_exp_date_callback() { /* if (!is_user_logged_in()) { echo ‘Not logged in’; wp_die(); } */ $fw_user_id = get_current_user_id(); $get_fw_exp_date = get_user_meta($fw_user_id, ‘fw_exp_date’, true); if ($get_fw_exp_date) { // Convert YYYY-MM-DD to MM/DD/YYYY $date_obj = DateTime::createFromFormat(‘Y-m-d’,…Continue reading

Require Minimum Characters for Username

/** * Name: fw_minimumAccountUsernameChars (“fw” indicates “FreeWheelers”) * Desc: Require the account username be at least 8 characters **/ add_filter(‘frm_validate_field_entry’, ‘fw_minimumAccountUsernameChars’, 10, 3); function fw_minimumAccountUsernameChars( $errors, $field, $posted_value ){ if ( $field->id == MEMBER_REGISTRATION_USER_NAME_FIELD_ID ) { $minimum = 8; if…Continue reading

Pixelsz functionaliteiten

/** * Plugin Name: Pixelsz – Kernfuncties (V17.1.1) * Description: Kernfuncties voor Pixelsz-klanten: whitelist-rechten, beveiliging, licenties (Akismet/Divi), betaalde plugins-overzicht (incl. Rank Math Pro & WPCode Pro), e-mailtest, WhatsApp/belknop, tijdelijke banner, onderhoudspagina, activiteitenlog, custom login. * Author: Pixelsz * Version: 17.1.1…Continue reading

Pixelsz functionaliteiten

/** * Plugin Name: Pixelsz – Kernfuncties (V17.0.2) * Description: Whitelist-rechten gefixt. Kernfuncties & Beveiliging voor whitelist; niet-whitelist ziet E-mailtest, WhatsApp, Banner, Onderhoud. Activiteitenlog schakelbaar. Inclusief licenties, betaalde plugins/thema’s herkenning, onderhouds-takeover en plug-in vervangers. * Author: Pixelsz * Version: 17.0.2…Continue reading