Title: Plugin Hook Request for future
Last modified: August 21, 2016

---

# Plugin Hook Request for future

 *  Resolved [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/)
 * Hi, in the future sometime could you maybe have a look into creating hooks for
   WP Pro Quiz plugin? (would be really cool!)
 * Things like extra points for getting 100%, deduct points for under 50%, bonus
   points for completion of a string of quizzes (in the plugin you can set the quiz
   to only be taken if they have completed previous quizzes) etc
 * [http://wordpress.org/plugins/wp-pro-quiz/](http://wordpress.org/plugins/wp-pro-quiz/)
 * [https://wordpress.org/plugins/mycred/](https://wordpress.org/plugins/mycred/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717200)
 * Hey!
 * Good news! This has already been asked for and there is a custom hook available
   for you to download in the [myCRED Support forum](http://mycred.me/support/forums/topic/wp-pro-quiz/#post-2375).
 *  Thread Starter [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717217)
 * Gabriel you are AMAZING mate!
 *  Thread Starter [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717219)
 * I’ve tried to install the hook on my test site, I downloaded the zip, uploaded
   it to my BuddyPress (corporate by WPMUDEV) theme folder, added the ‘include_once(
   get_stylesheet_directory() . ‘/mycred-wp-pro-quiz-hook.php’ );’ to the functions.
   php file… then I get a white screen.
 * How do I enable WP_DEBUG mode?
 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717228)
 * Are you using a child theme?
 *  Thread Starter [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717230)
 * I’m using WPMUDEV BuddyPress Corporate theme. Here’s the mycred error message:
 * `Declaration of myCRED_Hook_Click_Links::has_entry() should be compatible with
   myCRED_Hook::has_entry($action = '', $ref_id = '', $user_id = '', $data = '',
   $type = '') in /var/www/.../plugins/mycred/modules/mycred-module-hooks.php on
   line 1118 Warning: include_once(/var/www/.../themes/bp-corporate/mycred-wp-pro-
   quiz-hook.php): failed to open stream: No such file or directory in /var/www/.../
   themes/bp-corporate/functions.php on line 5 Warning: include_once(): Failed opening'/
   var/www/.../themes/bp-corporate/mycred-wp-pro-quiz-hook.php' for inclusion (include_path
   ='.:') in /var/www/.../themes/bp-corporate/functions.php on line 5 Notice: wp_enqueue_script
   was called incorrectly`
 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717240)
 * The code in the forum assumes you use a child theme hence the use of get_stylesheet_directory.
   Change:
 *     ```
       include_once( get_stylesheet_directory() . '/mycred-wp-pro-quiz-hook.php' );
       ```
   
 * to:
 *     ```
       include_once( get_template_directory() . '/mycred-wp-pro-quiz-hook.php' );
       ```
   
 * The issue is that WordPress can not find the file in the child theme folder (
   because there is none) causing an error.
 *  Thread Starter [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717254)
 * I tried this and all I’m getting is a white screen and 404 message ( ‘The requested
   URL /wordpress/wp-login.php was not found on this server.’), every time I remove
   the site andall a fresh copy of WP, I just get the same thing, nothing being 
   found on server so can’t get into the admin panel in WP.
 * This is installed on a subdomain, not my main site
 *  Thread Starter [mucus](https://wordpress.org/support/users/mucus/)
 * (@mucus)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717281)
 * All sorted, Once again thank you so much Gabriel!!
 * Keep up the good work!

Viewing 8 replies - 1 through 8 (of 8 total)

 The topic ‘Plugin Hook Request for future’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [mucus](https://wordpress.org/support/users/mucus/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/plugin-hook-request-for-future/#post-4717281)
 * Status: resolved