Last active
March 22, 2019 20:25
-
-
Save booskills/489ea35ed52a54dfc819229a2032629c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** This code can be placed in functions.php file of Child theme or any other plugin */ | |
add_filter( 'rbr/admin/settings/advance/fields', 'adding_color_field_to_advance_section' ); | |
function adding_color_field_to_advance_section( $fields_array ) { | |
// Modify this fields array | |
$fields_array[] = array( | |
'id' => 'advance_color_field', | |
'label' => 'Advance Color Field', | |
'type' => 'color' | |
); | |
return $fields_array; | |
} | |
add_filter( 'rbr/cpt/register/book/args', function($args_array){ | |
$args_array['menu_icon'] = 'dashicons-carrot'; | |
return $args_array; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment