VerDetalleFamiliar

$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } $id_familiar=($_GET[‘id_fam’]); global $wpdb; $results = $wpdb->get_results( “SELECT * FROM `Registro_Familiares` where id_registro_familiares=”.$id_familiar.” and id_usuario=”.$user_id ); ?> probando mas cosas Correo electrónico Nunca compartiremos su…Continue reading

Modificar_Familiar

function wpf_snip_Modify_Familiar_process_complete( $fields, $entry, $form_data, $entry_id ) { // form #15755. if ( absint( $form_data[‘id’] ) !== 15755 ) { error_log(“Id form no encontrado”); return; } $user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ );…Continue reading

Admin_Lista_Beneficiarios

$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } global $wpdb; //”SELECT id_registro,nombre FROM `Resgistro_Usuario` where id_usuario=”.$user_id $results = $wpdb->get_results( “SELECT ru.id_registro, ru.nombre, ru.a_paterno, ru.a_materno, ru.id_usuario, COUNT(id_registro_familiares) as num_fam FROM Resgistro_Usuario as ru…Continue reading

Agregar Miembro

function wpf_snip_StoreData_UserDB_process_complete( $fields, $entry, $form_data, $entry_id ) { // form #12330. if ( absint( $form_data[‘id’] ) !== 12330 ) { error_log(“Id form no encontrado”); error_log($form_data[‘id’]); return; } $user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’…Continue reading

Agregar Familiar

function wpf_snip_StoreData_FamiliarUserDB_process_complete( $fields, $entry, $form_data, $entry_id ) { // form #12330. if ( absint( $form_data[‘id’] ) !== 12546 ) { error_log(“Id form no encontrado”); return; } $user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘************************************************************’ ); error_log( ‘No obtuvo el…Continue reading

Asignar_membresia

$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } $id_familiar=($_GET[‘id_ben’]); global $wpdb; $results = $wpdb->get_results( “SELECT * FROM `Registro_Familiares` where id_registro_familiares=”.$id_familiar.” and id_usuario=”.$user_id ); ?> Correo electrónico Nunca compartiremos su correo electrónico con…Continue reading

Lista_grabaciones_beneficiario

$id_beneficiario=($_GET[‘id_usr’]); //$myData = file_get_contents(“https://kuidales.com/wp-json/kuidales/v1/be?cmd=interno&get=APICu&type=ben&id=”.$id_beneficiario); $myDataAudio = file_get_contents(“https://kuidales.com/wp-json/kuidales/v1/be?cmd=GetCalls&aid=1&fi=2024-10-02&ff=2024-10-03″); //$myObject = json_decode($myData); $myObjectdos = json_decode($myDataAudio); //$estatus = $myObject->status; $status = $myObjectdos->status; if($status==”sucsess”){ }else{ echo “Intentelo mas tarde, audio mal”; } //$myObjectMap = $myObject->data; $myObjectMapdos = $myObjectdos->data; ?> Nombre del agente Fecha Grabacion…Continue reading

MFP > Global Utilities

/** * Global Utilities * */ function get_city($s_id) { if (!$s_id) return; // if (function_exists(‘get_field_object’)) { if ($s_id && get_post_type($s_id) == ‘show’) { $post_id = $s_id; } elseif ($s_id && function_exists(‘get_field’) && get_field(‘show_relationship’, $s_id)) { $post_id = get_field(‘show_relationship’, $s_id)[0]; }…Continue reading

MFP > Shortcodes

//add_shortcode(‘show-at’, ‘show_at’); //function show_at($atts, $content) //{ // if (isset($atts[‘size’])) { // $class = ‘ class=” ‘ . $atts[‘size’] . ‘ “‘; // } else { // $class = ”; // }; // return ‘‘ . $content . ‘‘; //} add_shortcode(‘start-bold’,…Continue reading

MFP > CLASS > myfair_Show_Data

// this is the class definition class myfair_Show_Data { public function __construct() { $this->loadShows(); if (isset($this->showList) && is_array($this->showList) && count($this->showList) > 0) { $this->loadShowCustomData(); } } public function loadShows() { $loop = new WP_Query(array( ‘post_type’ => ‘show’, ‘post_parent’ => ‘0’,…Continue reading