Custom Social Share Email Subject
add_filter( ‘wpex_social_share_data_email_subject’, function() { return ‘My custom subject’; } );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘wpex_social_share_data_email_subject’, function() { return ‘My custom subject’; } );Continue reading
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
define( ‘VCEX_CALLBACK_FUNCTION_WHITELIST’, [ ‘my_custom_function_name_1’, ‘my_custom_function_name_2’, ‘my_custom_function_name_3’, ] );Continue reading
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_action(‘admin_head’, ‘my_custom_admin_css’); function my_custom_admin_css() { echo ‘ ‘; }Continue reading
add_action(‘admin_head’, ‘my_custom_admin_css’); function my_custom_admin_css() { echo ‘ ‘; }Continue reading
add_filter(‘frm_chosen_js’, ‘chosen_js’); function chosen_js( $opts ) { $opts = array( ‘allow_single_deselect’ => true, ‘no_results_text’ => __( ‘No results match’, ‘formidable’ ), ‘search_contains’ => false, ); return $opts; }Continue reading
add_filter(‘get_frm_stylesheet’,’frm_stylesheet_change_loc’); function frm_stylesheet_change_loc( $sheet ) { $sheet[‘formidable’] = home_url() . ‘/something.css’; //Replace something.css return $sheet; } //When we want to save the $css option when saving the style, we can hook in there too to generate the file. add_action(‘update_option_frmpro_css’,’save_css_string’); function…Continue reading
add_filter(‘frm_validate_field_entry’, ‘calculate_time’, 11, 3); function calculate_time($errors, $field, $value){ $repeater_id = 1457; $hidden_field_id = 1456; // The field which will hold the total. $start_field_id = 1454; $end_field_id = 1455; if ( $hidden_field_id !== (int) $field->id ) { return $errors; } $repeater_meta…Continue reading
add_filter(‘frm_pre_create_entry’, ‘save_entry_without_userID’); function save_entry_without_userID( $values ) { $target_form_id = 239; //Replace 239 with your form ID if ( $target_form_id === (int) $values[‘form_id’] ) { $values[‘frm_user_id’] = 0; } return $values; }Continue reading