Add Custom Dynamic Variables

add_filter( ‘totaltheme/replace_vars/vars’, function( $vars ) { // Add a new {{my_custom_var}} custom variable. $vars[‘my_custom_var’] = ‘My variable value’; return $vars; } );Continue reading

Move WooCommerce Category Description Below Products

add_action( ‘init’, function() { // Disable subheading on product cats add_filter( ‘totaltheme/page/header/has_subheading’, function( $check ) { if ( is_tax( ‘product_cat’ ) ) { $check = false; } return $check; } ); // Display description below loop add_action( ‘wpex_hook_content_bottom’, function( $bool…Continue reading

Add WeChat Pay

add_filter(‘frm_stripe_payment_method_types’, ‘add_wechat_pay’, 10, 2); function add_wechat_pay( $payment_method_types, $args ) { $form_id = $args[‘form_id’]; $target_form_id = 5; // Change 5 to the ID of your form if ( $target_form_id === $form_id ) { $payment_method_types[] = ‘wechat_pay’; } return $payment_method_types; }Continue reading

Add form HTML in Outcome Quiz

add_filter(‘frm_main_feedback’, ‘add_form_outcome_quiz’ , 11, 3); function add_form_quiz_result( $message, $form, $entry_id ) { $target_form_id = 435; //Replace 435 with the ID of the form with the outcome quiz if ( $target_form_id !== (int) $form->id ) { return $message; } $form_id_by_result =…Continue reading

Change cron job

add_filter(‘frm_mark_abandonment_entries_period’, ‘change_cron_job’); function change_cron_job() { return 2; //This is 1 by default and it would increase to 2 by utilizing this hook. }Continue reading