gravityflow_permission_denied_message_entry_detail

Description

The gravityflow_permission_denied_message_entry_detail filter is used to change the content of the permission denied message on the entry detail page.

Parameters

ParameterTypeDetails
$permission_denied_messageStringWhether permission is granted to open the entry.
$current_stepStepNull or the current step.

Examples

Customize the text for a denied access message

add_filter( 'gravityflow_permission_denied_message_entry_detail', 'sh_gravityflow_permission_denied_message_entry_detail', 10, 2 );
function sh_gravityflow_permission_denied_message_entry_detail( $permission_denied_message, $current_step ) {
	return "You're not allow to view this entry";
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?