Value of Query string [closed]

If those values are in your query then you can use the following if( get_query_var(‘total’) ) { $total_value = floatval( str_replace( ‘$’, ”, get_query_var(‘total’) ) ); } or else if( isset( $_GET[‘total’] ) ) { $total_value = floatval( str_replace( ‘$’, ”, $_GET[‘total’] ) ); }

Passing data from after_submission action to the confirmation filter in gravity forms?

A hacky way round just for this situation is to just to get the latest create post. Not ideal but works as long no one creates an order within milliseconds of each other. public function order_confirmation( $confirmation, $form, $entry, $ajax ) { // get latest created order $order = get_posts([ ‘post_type’ => ‘purchase-order’, ‘numberposts’ => … Read more

Pass MD5 value to prepopulate field

Finally found the solution (I’ve been working on this for 2 days) add_filter(“gform_field_value_editlink”, “get_editlink”); function get_editlink(){ $current_user = wp_get_current_user(); $user_login = $current_user->user_login; $user_email = $current_user->user_email; $editlink = md5($user_login . $user_email); return $editlink; }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)