Skip to content

Commit

Permalink
Merge branch 'master' of github.com:stephanedemotte/acf-origin
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanedemotte committed May 11, 2018
2 parents c59a68c + 0de7546 commit bcb446f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions options/origin-acf-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ function clean_admin_ui() {
];
foreach($submenus as $submenu) { remove_submenu_page($submenu[0], $submenu[1]); }

?>
<style>.wp-menu-separator{display: none} .toplevel_page_origin{display: none}</style>
<?php

define('UPDRAFTPLUS_ADMINBAR_DISABLE', true);

add_action('wp_dashboard_setup', function() {
Expand All @@ -112,7 +108,8 @@ function clean_admin_ui() {
});

add_action('admin_head', function() {
echo '<style type="text/css">#post-preview { display: none; }</style>';
echo '<style>.wp-menu-separator{display: none} .toplevel_page_origin{display: none}</style>';
echo '<style type="text/css">#post-preview { display: none; }</style>';
});

}
Expand Down

0 comments on commit bcb446f

Please sign in to comment.