fauzanjeg

Change Content Attribute || Content Filter

Jul 8th, 2021 (edited)
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. /** Change Content Attribute || Content Filter */
  2. function change_content_attr( $attr ) {
  3.     $attr['sort_by'] = 'latest_modified';
  4.  
  5.     return $attr;
  6. }
  7. add_action( 'jnews_get_content_attr', 'change_content_attr' );
Add Comment
Please, Sign In to add comment