nik9099
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Tab unset doesn’t worki don’t realize without seeing your issue, i will know it once i see it
Forum: Plugins
In reply to: [WooCommerce] Tab unset doesn’t workOkay No problems
Forum: Plugins
In reply to: [WooCommerce] Problem with cart at the front pageSend me login details i will check this
Forum: Developing with WordPress
In reply to: add_action publish_post get_post_metafunction map_update($post_id) { $ID=$post_id; //if ($post->post_type = 'post') return; $link = get_permalink ( $ID ); $title = get_the_title ( $ID ); $mapaddress = get_post_meta ( $ID, 'address', true ); global $wpdb; $table = $wpdb->prefix . 'wpgmza'; $data = array( 'link' => $link, 'title' => $title, 'address' => $mapaddress,<code></code> ); $wpdb->insert($table , $data); } add_action('publish_post', 'map_update' );Forum: Plugins
In reply to: [WooCommerce] Tab unset doesn’t workadd_filter( ‘woocommerce_product_tabs’, ‘misha_remove_description_tab’, 11 );
function misha_remove_description_tab( $tabs ) {
unset( $tabs[‘description’] );
return $tabs;}
Try This one
add_filter(‘woocommerce_checkout_get_value’, function($input, $key ) {
global $current_user;
switch ($key) :
case ‘billing_first_name’:
case ‘shipping_first_name’:
return $current_user->first_name;
break;case ‘billing_last_name’:
case ‘shipping_last_name’:
return $current_user->last_name;
break;
case ‘billing_email’:
return $current_user->user_email;
break;
case ‘billing_phone’:
return $current_user->phone;
break;
endswitch;
}, 10, 2);