LLMS_Post_Handler::get_posts( $type = 'post' )
Contents
Source Source
File: includes/class.llms.post.handler.php
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 | public static function get_posts( $type = 'post' ) { $args = array ( 'posts_per_page' => 1000, 'post_type' => $type , 'nopaging' => true, 'post_status' => 'publish' , 'orderby' => 'post_title' , 'order' => 'ASC' , 'suppress_filters' => true, ); $postslist = get_posts( $args ); if ( ! empty ( $postslist ) ) { foreach ( $postslist as $key => $value ) { $value ->edit_url = get_edit_post_link( $value ->ID, false ); } } return $postslist ; } |
Expand full source code Collapse full source code View on GitHub