The following shortcodes and functions are available the Facebook Login Pro plugin.
Available shortcodes:
[fbl_login_widget hide_if_logged="false" redirect="" login_form="true"]: Display a form to let users login / register by email or with Facebook.
[fbl_login_button hide_if_logged="false" redirect=""]: Display a Facebook login button.
Available functions:
fbl_widget( array( ‘redirect’ => ”, ‘hide_if_logged’ => ”) );: Display a form to let users login / register by email or with Facebook. works like the shortcode above
Available buttons:
do_action(‘facebook_login_button’);: Prints a Facebook connect button. If the user is already logged in, It will link the facebook profile to his account.
do_action(‘facebook_disconnect_button’);: Prints a button to disconnect Facebook from an existing user profile. It will remove the connection and avatar from user profile.
If you need to change redirect when using hooks or globally , you could add the following filter:
add_action( 'flp/redirect_url', 'change_redirect_url'); function change_redirect_url( $url ) { $url = 'http://newurl.com'; return $url; }