// BEGIN ENQUEUE PARENT ACTION if ( !function_exists( 'chld_thm_cfg_parent_css' ) ): function chld_thm_cfg_parent_css() { wp_enqueue_style( 'chld_thm_cfg_parent', trailingslashit( get_template_directory_uri() ) . 'style.css', array() ); } endif; add_action( 'wp_enqueue_scripts', 'chld_thm_cfg_parent_css', 10 ); // Optional: enqueue child theme style if needed // wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('chld_thm_cfg_parent') ); // Add column in Users for WPUF form data function add_wpuf_form_data_column($columns) { $columns['wpuf_form_data'] = 'Latest Form Entry'; return $columns; } add_filter('manage_users_columns', 'add_wpuf_form_data_column'); function show_wpuf_form_data($value, $column_name, $user_id) { if ($column_name == 'wpuf_form_data') { $meta_key = 'actual_meta_key_here'; // Replace this $data = get_user_meta($user_id, $meta_key, true); return $data ? esc_html($data) : 'No data'; } return $value; } add_filter('manage_users_custom_column', 'show_wpuf_form_data', 10, 3); // Shortcode to show download button only to caregivers function show_caregiver_download() { if ( current_user_can('caregiver') ) { return 'Download App'; } else { return '
Please log in as a caregiver to download the app.
'; } } add_shortcode('caregiver_download', 'show_caregiver_download'); // END ENQUEUE PARENT ACTION