Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('wcfm_datatable_page_length', function ($page_length) {
- global $wp;
- if( isset( $wp->query_vars['wcfm-vendors'] ) && empty( $wp->query_vars['wcfm-vendors'] ) ) {
- return 5;
- }
- return $page_length;
- });
Add Comment
Please, Sign In to add comment