Inputs & Buttons

function get_city_field( $user_id = null, $role = null, $required = null, $readonly = null) { $field[‘name’] = ‘_city’; $field[‘label’] = ‘City’; $field[‘key’] = ‘city’; // // if( $user_id && in_array(‘exhibitor’, get_userdata( $user_id )->roles )){ // $field[‘label’] = ‘Gallery City’; //…Continue reading

Completely Disable Comments

add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading

Test Redirect Data WPForms

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

Register Redirect Data WPForms Kuidales

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

Register New User WPForms Kuidales

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

StoreDataNewUserDB

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

StoreDataFamiliarUserDB

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

Register_Info_New_User_WPForm Test

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

Show Values Check and round box

/** * 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

Table Bitacoras

$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); $myObject = json_decode($myData); $estatus = $myObject->status; if($estatus==”Success”){ }else{ echo “Intentelo mas tarde, bitacoras mal”; } $myObjectMap = $myObject->data; ?> Categoria Fecha Visualizar bitacorasContinue reading