Category : function

So i try to make a function for my register site to check if a username, email or ip exists. And like to check them seperat. So i can output to the user that what exists. But somehow this isn`t working. This is the function. function checkExists($con, $username, $email, $ip) { //check for existing stuff ..

Read more

how can i get the master_id from detail_gudang_aktif() to get_gudang_all()? I’ve tried so many way, using session, global definition, etc function detail_gudang_aktif(){ $master_id = (integer) (isset($_POST[‘master_id’]) ? $_POST[‘master_id’] : $_GET[‘master_id’]); $result = $this->m_produk->detail_gudang_aktif($master_id); echo $result; } function get_gudang_all(){ $result = $this->m_produk->get_gudang_all($master_id); echo $result; } Sourc..

Read more

I use following code to create a custom tag named _datetime in wordpress function.php. function add_custom_mail_tag( $custom_mail_tags, $form_id ) { $custom_mail_tags[] = "_datetime"; return $custom_mail_tags; } add_filter( "wpcf7_special_mail_tags", function( $output, $name, $html ) { if ( $name === "_datetime" ) { $submission = WPCF7_Submission::get_instance(); if ( $timestamp = $submission->get_meta( ‘timestamp’ ) ) { $date = ..

Read more

I have created a ACF custom field of images connected to my custom post type. To display images, if check get_field(‘box_image’) is empty/null, default to selected image with get_theme_file_uri(‘/assets/images/img.jpg’); function. All images are displayed correctly below, as I have set add_image_size of 250×180, but how can I make the default image (second) render to 250×180 ..

Read more

I have created a ACF custom field of images connected to my custom post type. To display images, if check get_field(‘box_image’) is empty/null, default to selected image with get_theme_file_uri(‘/assets/images/img.jpg’); function. All images are displayed correctly below, as I have set add_image_size of 250×180, but how can I make the default image (second) render to 250×180 ..

Read more