MWM IWP Results Tables

?> MedWeight Individual Weight Program Domain Score Food Environment <td style='–size:; –color:;’> Appetite <td style='–size:; –color:;’> Food Reward <td style='–size:; –color:;’> Sleep <td style='–size:; –color:;’> Physical Activity <td style='–size:; –color:;’> Stress <td style='–size:; –color:;’>   Understanding Your Results Your score…Continue reading

Beecee – Disables selected fields in WP Admin

// disable non admin editing of school profile field // h/t https://wp-qa.com/how-to-make-custom-field-in-wordpress-user-profile-read-only add_action(‘admin_init’, ‘wordplace_user_profile_fields_disable’); function wordplace_user_profile_fields_disable() { global $pagenow; // apply only to user profile or user edit pages if ($pagenow!==’profile.php’ && $pagenow!==’user-edit.php’) { return; } // do not change…Continue reading

Beecee + WPForms – Smart Tags in the HTML

/** * Process Smart Tags inside HTML / Code Block form fields. * * @link https://wpforms.com/developers/how-to-process-smart-tags-in-html-fields/ */ function wpf_dev_html_process_smarttags( $properties, $field, $form_data ) { $properties[ ‘inputs’ ][ ‘primary’ ][ ‘code’ ] = apply_filters( ‘wpforms_process_smart_tags’, $properties[ ‘inputs’ ][ ‘primary’ ][ ‘code’…Continue reading

Beecee – Display Wp Form without Entry (wpforms_display)

function FN_display_wpforms_if_no_entry($atts) { // Extract shortcode attributes $atts = shortcode_atts(array( ‘id’ => ”, ‘title’ => ‘false’, ), $atts, ‘wpforms’); // Get the current user’s ID $current_user_id = get_current_user_id(); // Check if the current user has any entries in the form…Continue reading