A much more efficient way that doesn’t require editing the source code:
install and activate wpfront User role editor,
go to all roles,
edit the author role,
scroll down to the ‘other capabilities’ section,
check the following capabilities: wpProQuiz_show, wpProQuiz_add_quiz, wpProQuiz_edit_quiz
Save.
The authors on your site should now be able to add and edit quizes.
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Publish author posts only with editor approval?
- Is There a WordPress Hook to Filter the Edit Posts View?
- Add section (add_settings_section) to a custom page (add_submenu_page)
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- WordPress Capabilities: edit_user vs edit_users
- How do I only load a plugin js on it’s settings pages?
- Allowing Custom Capability to Manage Plugin Options
- Custom plugin settings: clicking “save changes” does not display success message
- How to develop a community feature in the dashboard for multiauthor site
- Checking for user role in a custom plugin
- wordpress plugin that show my reputation (points) in any stackexchange project in my wordpress blogs
- Allow Facebook to preview posts before published
- Set user ID at time of wp_create_user
- How to write a plugin to add users to a mail list
- How to make a customize role and view a specific plugins base on that role?
- Hook to plugins admin settings
- All Users > User List > Update User Meta Field Inline
- Display update notification messages like ‘What’s New’
- Redirection of users away from wp-admin (but not administrators)
- Custom post type – no layout section of Document tab, and no author choice
- How to allow an editor to edit all WordPress blog posts but have the last say as administrator?
- Modifying Author Link to add Author Meta in URL
- do_action() hook into load-(page)
- How to change the name of the “edit my profile” link in the WordPress admin backend
- Can a Plugin Override New User Default Role Type
- Adding CSS to custom post type admin page causes error
- Admin AJAX doesn’t work in plugin admin page – Even though code is copied verbatim from WordPress Codex
- remove all submenus from plugin
- creating a plug in that would tap into save/update action of posts [closed]
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How to use the CSS of the WordPress core in the development of my administration page?
- Remove specific administrator’s capability
- Plugin permissions for Editor role
- How To Create A File Archive in WordPress?
- How can i list random author?
- How to hide plugin options for editors via functions.php
- Ajax request sends url rather than data
- How to add captcha to publish widget
- Adding a jQuery modal dialog to the admin area
- Adding plugin editing capability for Author
- How to create admin setting for this small plugin
- WC Fix Attributes – ‘Add New’ Not Searchable/Delayed
- Allow a particular user to access a particular plugin?
- Hide all Admin Notices and move on a separate page
- Changing author slug for a custom role without using plugin
- Remove dashboard links from wordpress
- Disable plugin for administrator
- Echo custom admin field into a is_single()
- Get content and send to 3rd party
- Displaying friend’s posts only
- Defined user role to access plugin’s pages
- Want to add post to user dashboard
- Display Any Field fromAdmin Panel in Frontend via Shortcode?
- Open Post Thumbnail in New Child Theme File in WordPress
- How to pull code snippet from functionality plugin?
- How to use get_theme_mod in gutenberg editor wordpress?
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Where should I save an API key of my user when installing my plugin?
- Reusable functions and tools (Framework)
- Is Wrapping intval() Around esc_attr() Redundant for Escaping Input?
- Programatically download a plugin
- Error shown for Trying to get property ‘roles’ of non-object in WordPress After Content for User Roles
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- React JSX in WordPress Plugin Development
- My plugin wants to update another plugin
- Redirecting to home page after login as custom role WordPress
- Editing admin pages in WordPress [closed]
- Add keywords meta to index.php page
- Custom form action to handle data inside a plugin
- Where (or when) should I register a new taxonomy?
- Woocommerce plugin for minimum order and add-to-card-step
- Self deactivate plugins after an action occurs
- How to get current post user id
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- Issue with adding count to “subsubsub” aka quick links on custom_post_type
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- How to slice an array using posts_per_page? [closed]
- White page on custom plugin option submit
- Simple ajax call not working in wordpress plugin
- Plugin version is not showing up in wordpress.org plugin directory
- Do action only on certain front end pages?
- Disable plugin per user role
- Change plugin main file name (that is currently in the repo)
- Create dynamic page content from custom WordPress plugin page
- Plugin Options Not Saving to Database in WP 4.5
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- How to create ‘import dummy data’ option in custom wordpress plugin
- Call to a member function have_posts() on a non-object on normal loop
- JS Support Ticket – Auto create WP account
- WP Post Template – Templates in own folder
- Layout Plugin Admin Pages: Use BootStrap? [closed]
- Register Page Template from Plugin
- Not getting author rank when using return
- Private Plugin Updates – Localhost
- Remove Duplicator plugin from admin menu if not an administrator
- How to change custom post type pemalink Hierarcy