Skip to content

Instantly share code, notes, and snippets.

@zachskaggs
Created September 26, 2014 20:03
Show Gist options
  • Save zachskaggs/1eb33e4afb2ad2384ecf to your computer and use it in GitHub Desktop.
Save zachskaggs/1eb33e4afb2ad2384ecf to your computer and use it in GitHub Desktop.
Update ninja forms CC field labels
<?php
function ninja_forms_credit_card_number_desc_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_number_label_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_cvc_desc_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_cvc_label_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_name_desc_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_name_label_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_exp_month_desc_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_exp_month_label_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_exp_year_desc_change_func ( $string ) {
$string = 'change this';
return $string;
}
function ninja_forms_credit_card_exp_year_label_change_func ( $string ) {
$string = 'change this';
return $string;
}
add_filter( 'ninja_forms_credit_card_number_desc', 'ninja_forms_credit_card_number_desc_change_func' );
add_filter( 'ninja_forms_credit_card_number_label', 'ninja_forms_credit_card_number_label_change_func' );
add_filter( 'ninja_forms_credit_card_cvc_desc', 'ninja_forms_credit_card_cvc_desc_change_func' );
add_filter( 'ninja_forms_credit_card_cvc_label', 'ninja_forms_credit_card_cvc_label_change_func' );
add_filter( 'ninja_forms_credit_card_name_desc', 'ninja_forms_credit_card_name_desc_change_func' );
add_filter( 'ninja_forms_credit_card_name_label', 'ninja_forms_credit_card_name_label_change_func' );
add_filter( 'ninja_forms_credit_card_exp_month_desc', 'ninja_forms_credit_card_exp_month_desc_change_func' );
add_filter( 'ninja_forms_credit_card_exp_month_label', 'ninja_forms_credit_card_exp_month_label_change_func' );
add_filter( 'ninja_forms_credit_card_exp_year_desc', 'ninja_forms_credit_card_exp_year_desc_change_func' );
add_filter( 'ninja_forms_credit_card_exp_year_label', 'ninja_forms_credit_card_exp_year_label_change_func' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment