How to set add question capability for author role in wp pro quiz plugin

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 … Read more

How can I replace content in the WP Admin area before an admin page is rendered?

There’s no filter for filtering all of the HTML output in the admin. The closest thing is the gettext filter: function wpse_275812_filter_text( $translated_text, $text, $domain ) { $translate_text = str_ireplace( ‘foo’, ‘bar’, $translated_text ); return $translated_text; } add_filter( ‘gettext’, ‘wpse_275812_filter_text’ ); This filters any text output by the internationalization functions (__(), _e(), etc.). So it … Read more