Skip to content
Browse files

Add webcomic_integrate_sort filter.

  • Loading branch information...
1 parent 8308db7 commit da5639316adc6d0014e3f074c42cbc9069b7c470 Michael Sisk committed Mar 17, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 webcomic.php
View
3 webcomic.php
@@ -1623,10 +1623,11 @@ public function the_content( $content ) {
* @param object $query WP_Query object.
* @uses WebcomicTag::is_webcomic_archive()
* @uses WebcomicTag::is_webcomic_tax()
+ * @filter string webcomic_integrate_sort Filters the sort order of webcomics on post type and taxonomy archive pages.
*/
public function integrate_sort_asc( $query ) {
if ( self::$integrate and $query->is_main_query() and ( WebcomicTag::is_webcomic_archive() or WebcomicTag::is_webcomic_tax() ) ) {
- $query->set( 'order', 'ASC' );
+ $query->set( 'order', apply_filters( 'webcomic_integrate_sort', 'ASC' ) );
}
}

0 comments on commit da56393

Please sign in to comment.
Something went wrong with that request. Please try again.