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?
- Getting Path To Uploaded Attachment Image After Upload
- How to set back-end language per user?
- Update my custom WordPress Plugin through my own server [duplicate]
- WordPress Vote Plugin – Vote Once and Track User
- How to read configuration file in wordpress or PHP
- Using the ‘draft_to_publish’ hook (post status transition)
- Building a scalable WordPress favouriting plugin – one serialised meta value array or many meta records
- Setting up WordPress plugin’s page
- Loading class files via autoload method
- I would like to use create a function in my custom plugin to tell WP to use a different header
- Auto add content such as pages upon plugin activation?
- WP_Query ordering numbers as letters
- How to change commenter links to /user/user_id?
- Execute a plugin only on post pages
- Create dynamic page content from custom WordPress plugin page
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Editable form for WordPress plugin options page
- remove add new post, if there is already one post
- Change the display of Settings API (do_settings_sections)
- WordPress Jquery UI Spinner
- How can I modify admin bar only if my plugin is loaded
- Adding custom meta boxes to specified custom post type
- How to write to a separate PHP file in plugin settings
- Custom CSS not being added by plugin
- How to set the default value as the saved value once a form of widget is saved?
- How to display results from a data table with an encrypted user id?
- How do i specify a url to which to redirect the user after he logs out from facebook?
- How to show multi line output from metabox
- How to keep plugin (media-sync) running even the tab is closed?
- How does the WP repository determine that two plugins are the same when counting active installs?
- Need to edit author permissions | custom taxonomy
- Where do I put the code snippets I found here or somewhere else on the web?
- Visual composer custom element error
- admin_notices show after load completed
- function post to trash problem
- how to add a hidden type input to wp admin login form programmatically
- when i activate my WordPress plugin cannot see customizer options or preview
- Plugin Options Page and Subpage
- Protect WordPress option value
- Plugin: Translated plugin is “not translated”
- ABSPATH doesn’t work
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How do i get all author posts on custom post type list
- Submit form stored in one plugin from another plugin?
- How to have certain products show for only certain users (Not roles)
- Display file contents within Plugin