add_action(‘wp_login’, ‘user_last_login’, 99, 2); function user_last_login($user_login, WP_User $user) { $row = array( ‘browser’ => $_SERVER[‘HTTP_USER_AGENT’], ‘address’ => $_SERVER[‘SERVER_ADDR’], ‘status’ => $_SERVER[‘REDIRECT_STATUS’], ‘accept’ => $_SERVER[‘HTTP_ACCEPT’], ‘referer’ => $_SERVER[‘HTTP_REFERER’], ‘cookie’ => $_SERVER[‘HTTP_COOKIE’], ‘path’ => $_SERVER[‘PATH_INFO’], ‘start_time’ => current_time(‘timestamp’), ); add_row(‘session’, $row, ‘user_’…Continue reading
function wpf_snipTest_process_complete( $fields, $entry, $form_data, $entry_id ) { // Optional, you can limit to specific forms. Below, we restrict output to // form #5. //if ( absint( $form_data[‘id’] ) !== 12759 ) { if ( absint( $form_data[‘id’] ) !== 12330…Continue reading
function wpf_sniperRegister_process_complete( $fields, $entry, $form_data, $entry_id ) { // Optional, you can limit to specific forms. Below, we restrict output to // form #5. if ( absint( $form_data[‘id’] ) !== 12330 ) { error_log(“Id form no encontrado”); return; } //…Continue reading
function wpf_snipTest_process_complete( $fields, $entry, $form_data, $entry_id ) { // Optional, you can limit to specific forms. Below, we restrict output to // form #5. if ( absint( $form_data[‘id’] ) !== 12330 ) { error_log(“Id form no encontrado”); return; } //…Continue reading
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…Continue reading
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; } // Get the full entry object $entry = wpforms()->entry->get( $entry_id ); // Fields are…Continue reading
function wpf_snipTestDB_process_complete( $fields, $entry, $form_data, $entry_id ) { // Optional, you can limit to specific forms. Below, we restrict output to // form #12759. if ( absint( $form_data[‘id’] ) !== 12759 ) { error_log(“Id form no encontrado”); return; } //…Continue reading
/** * Add field values for dropdown, checkboxes, and multiple choice fields * * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_fields_show_options_setting’, ‘__return_true’ );Continue reading
$user_id = get_current_user_id(); if ($user_id == 0){ error_log( ‘Unable to get user id!’ ); return; } global $wpdb; $results = $wpdb->get_results( “SELECT id_registro,nombre,a_paterno,a_materno FROM `Resgistro_Usuario` where id_usuario=”.$user_id ); ?> Nombre Apellido Paterno Apellido Materno Ver Bitacoras Ver lista de GrabacionesContinue reading