CRED Add new taxonomy labels

These are several undocumented filters that can be used in a CRED Form to customize the buttons available in the “Add” Taxonomy Field.

  1. Customize the “Show Popular” Text
add_filter('toolset_button_show_popular_text', 'toolset_button_show_popular_text');
function toolset_button_show_popular_text($text)
{
    return 'my own popular';
}
  1. Customize the “Hide Popular” Text:
add_filter('toolset_button_hide_popular_text', 'toolset_button_hide_popular_text');
function toolset_button_hide_popular_text($text)
{
    return 'my own hide';
}
  1. Customize the “Add New” Text:
add_filter('toolset_button_add_new_text', 'toolset_button_add_new_text');
function toolset_button_add_new_text($text)
{
    return 'my own add new';
}
  1. Customize the “Cancel” Text:
add_filter('toolset_button_cancel_text', 'toolset_button_cancel_text');
function toolset_button_cancel_text($text)
{
    return 'my own cancel';
}
  1. Customize the “Add” Text:
add_filter('toolset_button_add_text', 'toolset_button_add_text');
function toolset_button_add_text($text)
{
    return 'my own add';
}
  1. Customize the “Delete” Text for Repeating Fields:
add_filter('toolset_button_delete_repetition_text', 'toolset_button_delete_repetition_text', 10, 2);
function toolset_button_delete_repetition_text($text, $config)
{
    return 'my own delete repetition: '.$config['title'];
}
  1. Customize the “Add” Text for Repeating Fields:
add_filter('toolset_button_add_repetition_text', 'toolset_button_add_repetition_text', 10, 2);
function toolset_button_add_repetition_text($text, $config)
{
    return 'my own add repetition: '.$config['title'];
}