Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Filter Tag */
- function limit_tag_to_five($tag) {
- $val = array();
- foreach ( $tag as $data ) {
- $val[] = $data->name;
- }
- return array_slice( $val, 0, 5, true );
- }
- add_filter('limit_tag','limit_tag_to_five');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement