herb miller

WordPress plugin specialist

  • Home
  • About
    • Online CV
    • Contact
    • Find me
  • Shop
    • Seriously Bonkers – softback book
    • Seriously Bonkers – signed book
    • Seriously Bonkers – PDF
  • Dev env
    • Local development
    • WordPress plugins
    • Server environments
    • Development hardware
    • WAMP configuration
    • Tools and languages
    • What’s not in my development environment?
    • Anything else in your development toolkit?
  • Sites
disallow Create

WordPress capabilities: How to restrict Add New while allowing Edit

By default, when you register a post type, WordPress sets the value of the required capability for Add New to that used for Edit (i.e. All Posts). If you want to prevent users from using Add New content but still allow them to Edit content then you will need to assign different capability names.

But that’s not all. With the current version of WordPress ( 4.0 ) you need to implement a small workaround. [Read more…]

Categories: programming, WordPressTags: allow edit, capabilities, disallow Create, filter, updated, user_has_cap

Published: September 21, 2014 | Last updated: October 11, 2014

Products

  • Seriously Bonkers - signed book £8.99 £5.99
  • Seriously Bonkers - PDF £1.00
  • Seriously Bonkers - softback book £8.99 £4.99

Recent Posts

  • Slog-bloat – server performance testing
  • WebP for my iPad
  • Image size reduction by quality
  • Localization of Full Site Editing themes
  • Fizzie – an experimental Full Site Editing theme

Recent Comments

  • Aprende gutenberg #49 - Aprende gutenberg on SB Children block – my first Single Block plugin
  • Richard Cagle on Installing Imagick for PHP 7 on Windows 10
  • WordCamp Birmingham on bucket list – WordCamp Birmingham UK 2015 (#wcbrum)
  • mick on WordPress capabilities: How to restrict Add New while allowing Edit
  • mick on WooCommerce 2.2.4 – Dynamic API Reference

Archives

Categories

WordPress 5.6.1. PHP: 7.3.27

WordPress version: 5.6.1

Gutenberg version: 9.9.3

Tide times from tidetimes.co.uk

Tide Times & Heights for Northney onMonday, 01 March 2021
High Tide:00:52 ( 5.00m )
Low Tide:06:06 ( 0.10m )
High Tide:13:03 ( 5.00m )
Low Tide:18:28 ( -0.10m )

Tide times from tidetimes.org.uk

Tide Times & Heights for Northney on 1st March 2021
00:52 - High Tide ( 5.00m )
06:06 - Low Tide ( 0.07m )
13:03 - High Tide ( 4.98m )
18:28 - Low Tide ( -0.12m )

Follow me

  • Home
  • About
  • Blog
  • Contact
  • Find me
  • Privacy notice
  • Sitemap

Site:  herbmiller.me
© Copyright herb miller 2012-2021. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress