Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

New API function: bbl_is_translated_taxonomy

  • Loading branch information...
commit f274fffbc02269925035040941f9aae4da2df6c4 1 parent 0238f69
@simonwheatley simonwheatley authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 api.php
View
10 api.php
@@ -145,6 +145,16 @@ function bbl_get_taxonomy_in_lang( $taxonomy, $lang_code = null ) {
}
/**
+ * Test whether a particular taxonomy is translated or not.
+ *
+ * @param string $taxonomy The name of the taxonomy to check
+ * @return bool True if this is a translated taxonomy
+ */
+function bbl_is_translated_taxonomy( $taxonomy ) {
+ return (bool) apply_filters( 'bbl_translated_taxonomy', true, $taxonomy );
+}
+
+/**
* Returns a taxonomy slug translated into a particular language.
*
* @param string $slug The slug to translate
Please sign in to comment.
Something went wrong with that request. Please try again.