pmpro_checkout_signon_secure
The Paid Memberships Pro pmpro checkout signon secure hook.
Description
Parameters (1)
- 0. $force_ssl_admin (unknown) =>
force_ssl_admin()
- The force ssl admin.
Usage
- To run the hook, copy the example below.
- $force_ssl_admin = apply_filters( 'pmpro_checkout_signon_secure', $force_ssl_admin );
- if ( !empty( $force_ssl_admin ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the pmpro_checkout_signon_secure callback
- function filter_pmpro_checkout_signon_secure( $force_ssl_admin ) {
- // make filter magic happen here...
- return $force_ssl_admin;
- };
- // add the filter
- add_filter( 'pmpro_checkout_signon_secure', 'filter_pmpro_checkout_signon_secure', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'pmpro_checkout_signon_secure', 'filter_pmpro_checkout_signon_secure', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /preheaders/checkout.php
- wp_set_auth_cookie( $user_id, true, apply_filters( 'pmpro_checkout_signon_secure', force_ssl_admin() ) );