um_admin_category_access_settings_fields
Hook type
Filter
Description
Settings fields for terms
Parameters
$access_settings_fields
(array) Settings Fields
$data
(array) Settings Data
$screen
(string) Category Screen
Usage
add_filter( 'um_admin_category_access_settings_fields', 'function_name', 10, 3 );
Examples
<?php add_filter( 'um_admin_category_access_settings_fields', 'my_admin_category_access_settings_fields', 10, 3 ); function my_admin_category_access_settings_fields( $access_settings_fields, $data, $screen ) { // your code here $access_settings_fields[] = array( 'id' => 'my-field-key', 'type' => 'my-field-type', 'label' => __( 'My field Label', 'ultimate-member' ), 'description' => __( 'My Field Description', 'ultimate-member' ), 'value' => ! empty( $data['_um_custom_access_settings'] ) ? $data['_um_custom_access_settings'] : 0, ); return $access_settings_fields; } ?>
Change Log
Since: 2.0
Source
um_admin_category_access_settings_fields
is located in includes/admin/core/class-admin-metabox.php::line 441