1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
<?php
function papi_filter_settings_only_taxonomy_type( $taxonomy ) {
$taxonomy_type = apply_filters( 'papi/settings/only_taxonomy_type_' . $taxonomy, '' );
if ( ! is_string( $taxonomy_type ) ) {
return '';
}
return str_replace( '.php', '', $taxonomy_type );
}
function papi_filter_settings_standard_taxonomy_type_name( $taxonomy ) {
$name = papi_get_taxonomy_label( $taxonomy, 'singular_name', 'Taxonomy' );
$tag = 'papi/settings/standard_taxonomy_name_' . $taxonomy;
return apply_filters( $tag, sprintf( __( 'Standard %s', 'papi' ), $name ) );
}
function papi_filter_settings_show_standard_taxonomy_type( $taxonomy ) {
return ! apply_filters( 'papi/settings/show_standard_taxonomy_type_' . $taxonomy, false ) === false;
}