Created
May 10, 2015 11:24
-
-
Save rahularyan/5e6932f36cbbd2938de9 to your computer and use it in GitHub Desktop.
Alter AnsPress tab titles
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
/** | |
* Filter for altering link from question list tab | |
* @param array $nav contain link of tab in array | |
* @return array | |
*/ | |
function my_alter_ap_tab_item($nav){ | |
$nav['newest']['title'] = __('Latst'); | |
return $nav; | |
} | |
add_filter('ap_questions_tab', 'my_alter_ap_tab_item'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment