Filter
rpress_no_guest_checkout
On this page
Filters whether guest checkout is disallowed.
The default is true when the Login/Register Option setting is login only. When true, customers must log in or register to check out. The result is cast to a boolean.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$ret | bool | True when guest checkout is not allowed. |
Return value#
bool. True to require login.
Example#
function my_no_guest_checkout( $no_guest ) {
return $no_guest;
}
add_filter( 'rpress_no_guest_checkout', 'my_no_guest_checkout' );
Source#
Applied in:
includes/rp-core-functions.php(line 1695), inrpress_no_guest_checkout()
Was this page helpful?
