Error – ‘create_function is deprecated’

Our WP Debug is report that ‘Function create_function() is deprecated’. Any idea how to rewrite this code to not include create_function ? self::register_form_init_scripts( $form, $field_values, $ajax ); if ( apply_filters( 'gform_init_scripts_footer', false ) ) { add_action( 'wp_footer', create_function( '', 'GFFormDisplay::footer_init_scripts(' . $form['id'] . ');' ), 20 ); add_action( 'gform_preview_footer', create_function( '', 'GFFormDisplay::footer_init_scripts(' . $form['id'] . … Read more

Inside Array – “unidentified index” error with “prepare was called incorrectly” despite not calling the prepared statement with wordpress

I know that there is a very old answer that details unidentified index but using the methods there I can not figure out how to make isset work with the code I have. It is below but doesnt solve the issue. Plus it my error is paired with the PREPARE error AND the fact that … Read more

WooCommerce display price before add to cart

I’m trying to make the WooCommerce product price display before the “add to cart” button, however, I cant seem to get the price to display. Here is the code I’m using in my functions.php add_action( 'woocommerce_before_add_to_cart_button', 'misha_before_add_to_cart_btn' ); function misha_before_add_to_cart_btn(){ echo '<div class="btn-price">'. $product->get_price_html().'</div>'; } Please would someone be able to point out where I’m … Read more