Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * Add custom post types to data source
- *
- * @param array $post_types
- *
- */
- add_filter( 'streamtube/core/widget/posts/post_types', function( $post_types ){
- // Define your own custom post type
- $custom_post_type = array(
- 'photos' => esc_html__( 'Photos', 'streamtube-child' )
- );
- return array_merge( $post_types, $custom_post_type );
- }, 10, 1 );
Add Comment
Please, Sign In to add comment