um_restrict_content_hide_metabox

Hook type

Filter

Description

Show/Hide Restrict content metabox

Parameters

$show

(bool) Show Metabox

Usage

add_filter( 'um_restrict_content_hide_metabox', 'function_name', 10, 1 );

Examples

<?php
add_filter( 'um_restrict_content_hide_metabox', 'my_restrict_content_hide_metabox', 10, 1 );
function my_restrict_content_hide_metabox( $show ) {
    // your code here
return $show;
}
?>

Change Log

Since: 2.0

Source

um_restrict_content_hide_metabox is located in includes/admin/core/class-admin-metabox.php::line 108