Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'request', 'wcc_request' );
- function wcc_request( $vars ) {
- print_r($vars);
- // Procuramos saber se o URL pede para sortear uma das colunas
- if ( isset( $vars['orderby'] ) ) {
- // Sorteamos por coluna
- switch ( $vars['orderby'] ) {
- case 'wcc_column' :
- $vars = array_merge( $vars, array(
- 'orderby' => 'wcc_words'
- ) );
- break;
- }
- }
- return $vars;
- }
Add Comment
Please, Sign In to add comment