Populate Product Regular Price with a calculated ACF Field Value

Based on a reference, I was able to populate the field of the regular price based on ACF field alue using the following Code : add_action( ‘woocommerce_process_product_meta’,update_product_price_from_acf’, 100, 1 ); function update_product_price_from_acf( $product_id ) { if( $price_acf = get_field( ‘netsalesprice’, $product_id ) ) update_post_meta( $product_id, ‘_regular_price’, $price_acf ); } This, however, needs me to go … Read more

Running javascript without hooking wp_head

Just make own notReady.php file for your function and add where you want to use with include(“notReady.php”) or require(“notReady.php”)… or make your own javascript file and load it within html: <script src=”notReady.js” /> Basicly, try to load your scripts at bottom your website… This is just optimalisation