Skip to main content

Home/ Wordpress/ Group items matching "types hacks" in title, tags, annotations or url

Group items matching
in title, tags, annotations or url

Sort By: Relevance | Date Filter: All | Bookmarks | Topics Simple Middle
John Pratt

How to Create Custom Post Types in WordPress - 6 views

    all about custom posts types and how to create post types, custom taxonomies, and display them by hacking your WordPress theme
william x

10 Must Have Hacks For WordPress Development | Spyre Studios - 3 views

    Building your own wordpress themes will open your eyes to a lot of things, mainly the fact that you'll be retyping a lot of code over and over and over again. So in this post I am going to show you ten wordpress code hacks that you can add to your arsenal that will not only save you a lot of time, but they will also set your themes apart from others who don't come pre built with these hacks of features.
Luciano Ferrer

widgets - Give Editor Access To Sidebar - WordPress Development Stack Exchange - 3 views

    "The edit_theme_options capability should allow the user to edit the sidebar as described on this page : Code to add to functions.php $role = get_role('editor'); $role->add_cap('edit_theme_options'); Edit: This should work to prevent editor accessing themes or menus function custom_admin_menu() { $user = new WP_User(get_current_user_id()); if (!empty( $user->roles) && is_array($user->roles)) { foreach ($user->roles as $role) $role = $role; } if($role == "editor") { remove_submenu_page( 'themes.php', 'themes.php' ); remove_submenu_page( 'themes.php', 'nav-menus.php' ); } } add_action('admin_menu', 'custom_admin_menu'); I haven't had chance to test this, but it only removes them from the menu they may still be able to access them by typing in the URL directly."
1 - 3 of 3
Showing 20 items per page