apply_filters( 'um_ignore_restricted_content', $ignore, $post_id ) → {bool}
Filters a marker for ignoring restricted post content changes.
Note: Use with caution! You can make your posts not restricted by using this filter hook.
Parameters:
Name | Type | Description |
---|---|---|
$ignore |
bool | Marker for ignoring restricted post content changes. Default |
$post_id |
int | Post ID. |
- Since:
- 2.2.3
- Source:
Returns:
Marker for ignoring restricted post content changes.
- Type
- bool
Examples
function change_restricted_content( $ignore, $id ) {
// your code here
if ( 400 === $id ) {
$ignore = true;
}
return $ignore;
}
add_filter( 'um_ignore_restricted_content', 'change_restricted_content', 10, 2 );
add_filter( 'um_ignore_restricted_content', '__return_true' );