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
Parameter | Type | Details |
---|---|---|
$permission_denied_message | String | Whether permission is granted to open the entry. |
$current_step | Step | Null or the current step. |
Examples
Customize the text for a denied access message
1 2 3 4 | 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?