Tagged: piklist menu
- This topic has 2 replies, 2 voices, and was last updated 7 years, 2 months ago by
jezzdk.
-
AuthorPosts
-
-
November 26, 2014 at 5:28 am #2856
jezzdkMemberI know that you want to have Piklist as a regular plugin, but in my case it’s better to have it sort of hidden from the users.
You see, in my language, ‘Pik’ means ‘Penis’ which means that ‘Piklist’ roughly translates to ‘List of penises’… As such, I don’t wont the name to appear anywhere in the admin interface. Since there’s really no settings to be dealt with, it would be optimal to include it directly in the theme. Furthermore, my clients wont be installing plugins such as Piklist themselves, so there’s no chance of conflicting versions.What I’d like is an explanation of how to implement the framework directly into my theme, or at least how to remove the admin menu item. Otherwise the name is kind of a dealbreaker for my company…
Please 🙂
-
November 26, 2014 at 10:42 am #2857
SteveKeymaster@jezzdk– Welcome to our community! We really don’t support including Piklist directly in your theme. Here’s the reason why >
If you need to remove the Piklist Admin menu, place this code in your themes functions.php file:
function remove_piklist_menu($pages) { foreach ($pages as $page => $value) // Loop through all admin pages registered with Piklist { if($value['menu_slug'] == 'piklist') // Check for the Piklist menu { unset($pages[$page]); // Remove it from the $pages array } } return $pages; } add_filter('piklist_admin_pages', 'remove_piklist_menu');This will only remove the Piklist menu. If you want to build other settings pages with Piklist they will still work.
-
November 28, 2014 at 8:38 am #2866
jezzdkMemberAwesome. That helps 🙂
Is it possible to hide it from the plugin list as well? Having ‘Piklist’ listed under plugins will result in a number of phone calls for sure.
-
-
AuthorPosts
- You must be logged in to reply to this topic.