How can I make my Admin Icon SVG color correctly? [closed]

From Codex: $icon_url […] * Pass a base64-encoded SVG using a data URI, which will be colored to match the color scheme. This should begin with ‘data:image/svg+xml;base64,’. WordPress will change color of your SVG if you use SVG content instead of the file URL. (JS code responsible for changing the color is in svg-painter.js file.) … Read more

Hide a page in the admin end without a plugin?

you can use parse_query filter hook to exclude your pages using post__not_in attribute add_filter( ‘parse_query’, ‘exclude_pages_from_admin’ ); function exclude_pages_from_admin($query) { global $pagenow,$post_type; if (is_admin() && $pagenow==’edit.php’ && $post_type ==’page’) { $query->query_vars[‘post__not_in’] = array(’21’,’22’,’23’); } } this will exclude pages with the ids of 21,22,23 and to make sure this pages will not be included on … Read more