Trying to build simple deposit code that hooks into woocommerce

Try this updated code. It should work: You can check this url for more information https://awhitepixel.com/blog/woocommerce-product-data-custom-fields-tabs/ add_action( ‘woocommerce_product_options_general_product_data’, ‘add_custom_fields_seo’); function custom_fields_save_seo( $post_id ){ $product = wc_get_product($post_id); $num_package = isset($_POST[‘_deposit_price’]) ? $_POST[‘_deposit_price’] : ”; $product->update_meta_data(‘_deposit_price’, sanitize_text_field($num_package)); $product->save(); } add_action( ‘woocommerce_process_product_meta’, ‘custom_fields_save_seo’ );

Cannot access wp-admin (wordpress dashboard)

the problem is your ssl. if you try to access to website with http://french-american.tv/ you can see the website. wp-admin force the ssl soo you have to fix this. in bluehost go on advanced section > SSL. and fix in your domain. edit check this website for the solution

Display a specific category of products in shop page and disable code for specific actions

This seems to be normal behavior since your filter will apply to any query made on post type archive “product”. You might be able to deactivate the filter for search query by adding the is_search condition to your filter so your function would look like so: add_action(‘pre_get_posts’,’shop_filter_cat’); function shop_filter_cat($query) { if (!is_admin() && is_post_type_archive( ‘product’ … Read more