This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace JobManager; | |
add_filter( 'job_manager_my_job_actions', __NAMESPACE__ . '\\add_expire_action', 10, 2 ); | |
function add_expire_action( $actions, $job_id ) { | |
if ( ! function_exists( __NAMESPACE__ . '\\handle_expire_action' ) ) { | |
return $actions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fired after registration of new user though the WSL plugin | |
add_action( 'wsl_hook_process_login_after_wp_insert_user', 'jvo_wsl_after_registration', 10, 3 ); | |
function jvo_wsl_after_registration( $user_id, $provider, $hybridauth_user_profile ) { | |
// Only fired if user registered using the WSL Plugin | |
// Add filter for redirect hook | |
add_filter( 'wsl_hook_process_login_alter_redirect_to', 'jvo_wsl_redirect_to', 10, 1 ); | |
} |