Opened 16 years ago
Closed 16 years ago
#9634 closed defect (bug) (invalid)
Filter on logout link + Diff
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.7.1 |
Component: | Users | Keywords: | has-patch |
Focuses: | Cc: |
Description
If i would like to add &cal=1 on every wp_logout() call i can't, cause the $redirect_to is not passed by a filter in wp-login.php
Look at the diff file.
here is a workflow of that change
function force_gets($args) { $args .= '&cal=1'; } add_filter( 'wp_logout_link', 'force_gets' );
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
another example could be
function force_gets($args) {
global $current_user
if ( 2 != (int)$current_user->ID )
}
add_filter( 'wp_logout_link', 'force_gets' );