PluginProbe
WP Team – WordPress Team Member Plugin / trunk
WP Team – WordPress Team Member Plugin vtrunk
trunk 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8
ht-team-member / include / helpers_function.php

helpers_function.php in WP Team – WordPress Team Member Plugin trunk, at include/helpers_function.php

21 lines 489 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Post type name
5 * @return array
6 */
7 function htteammember_postlist_name( $post = 'post' ){
8
9 $team_list = array( 'posts_per_page' => -1, 'post_type'=> $post );
10 $post_terms = get_posts( $team_list );
11 if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ){
12 foreach ( $post_terms as $term ) {
13 $options[ $term->ID ] = $term->post_title;
14 }
15 return $options;
16 }
17
18 }
19
20
21 ?>