Skip to content
Docs
Get RestroPress

Filter

rpress_reminder_default_enabled

Updated
On this page

Filters whether the order reminder email is on by default.

Runs in rpress_reminder_default_enabled() and applies until the store owner saves the reminder settings. The stored default is 'yes' for stores with no existing order reminder configuration at the time it is first read, and 'no' otherwise. Return false to keep the reminder off until it is switched on.

Parameters#

ParameterTypeDescription
$valueboolWhether the reminder is on by default.

Return value#

bool. True if the reminder is on by default.

Example#

function my_reminder_default( $enabled ) {
	return false;
}
add_filter( 'rpress_reminder_default_enabled', 'my_reminder_default' );

Source#

Applied in:

  • includes/features/reminder-emails/functions.php (line 63), in rpress_reminder_default_enabled()

See also#

Was this page helpful?