I'm using WordPress 4.6.1, is it possible for us to hook into function register_admin_color_schemes()
located in wp-includes/general-template.php
? This way we can send or concatenate or bind the following code to that function:
wp_admin_css_color( 'ffa', _x( 'My Custom Color Combo', 'admin color scheme' ),
admin_url( "/my-plugin=directory/css/colors/my-custom-color-combo/colors$suffix.css" ),
array( '#ffffff', '#ffcd00', '#c7a589', '#9ea476' ),
array( 'base' => '#f3f2f1', 'focus' => '#fff', 'current' => '#fff' )
);
If possible, how can we do this dynamically?
FYI, I see that I can manually modify the general-template.php
file, but I would have to do that every time I update WordPress.