Created
June 22, 2016 07:07
-
-
Save caercam/aa8b7fc2ef03ee7d013088cc7cefb94b to your computer and use it in GitHub Desktop.
Add 'Tamil' and 'Telugu' to supported WPMovieLibrary languages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add new movie languages | |
* | |
* @param array Exisiting languages | |
* | |
* @return array Updated languages | |
*/ | |
function wpmoly_add_new_languages( $languages ) { | |
$new_languages = array( | |
'ta' => 'Tamil', | |
'te' => 'Telugu' | |
); | |
$languages = array_merge( $languages, $new_languages ); | |
return $languages; | |
} | |
add_filter( 'wpmoly_filter_detail_language', 'wpmoly_add_new_languages', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is not working for me when i use with fishbig template