# ht-team-member/trunk/include/helpers_function.php

WP Team – WordPress Team Member Plugin, version trunk. 21 lines.

- Page: https://pluginprobe.com/plugins/ht-team-member/trunk/code/include/helpers_function.php
- Raw: https://pluginprobe.com/plugins/ht-team-member/trunk/raw/include/helpers_function.php
- Modified: 2019-01-29T08:35:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ht-team-member/trunk/code/include/helpers_function.php#L10-L20`.

```php
<?php

    /**
     * Post type name
     * @return array
     */
    function htteammember_postlist_name( $post = 'post' ){

        $team_list = array( 'posts_per_page' => -1, 'post_type'=> $post );
        $post_terms = get_posts( $team_list );
        if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ){
            foreach ( $post_terms as $term ) {
                $options[ $term->ID ] = $term->post_title;
            }
            return $options;
        }

    }


?>
```
