Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Codevery LLC

    (@codevery)

    Hello @alikarkary ,

    Thank you for your kind words! We’re delighted to hear that you’re enjoying our plugin.

    Currently, there is no way to add custom code for awarding points when a user wins a quiz, as the plugin does not have the necessary hooks. However, we understand the importance of this feature and are planning to add hooks in our next release.

    If this is urgent, you can temporarily add the code directly to the plugin file wp-content/plugins/codevery-quiz/includes/public/class-codevery-quiz-public.php
    to the add_coupon_to_database() function before the line if ( ! class_exists( 'WC_Coupon' ) ) {. The code will look something like this:

    public function add_coupon_to_database() {
    if ( ! check_ajax_referer( 'cquiz_display', 'cquiz_display_nonce', false ) ) {
    wp_send_json_error( 'bad_nonce', 400 );
    }

    if ( is_user_logged_in() ) {
    $user_id = get_current_user_id();
    $user_gems = get_user_meta( $user_id,'score', true );
    update_user_meta( $user_id, 'score', $user_gems + 45 );
    }


    if ( ! class_exists( 'WC_Coupon' ) ) {
    return false;
    }

    We appreciate your patience and understanding. If you have any other questions or need further assistance, please don’t hesitate to reach out.

    Best regards,
    Codevery LLC

    Plugin Author Codevery LLC

    (@codevery)

    Hello @stephunique,

    Thank you for trying out our plugin! We’re glad you like the design and some of its features.

    Your suggestions are really good and we appreciate them. We’re always working to improve our plugin and will consider these ideas for future updates.

    Thank you for your valuable feedback. If you have any other questions or need further assistance, please don’t hesitate to reach out.

    Best Regards,
    Codevery LLC

    Plugin Author Codevery LLC

    (@codevery)

    Hello Stephun,

    Thanks for your feedback! This will help us improve our plugin.
    Let me answer your questions:

    1) The questionnaire plugin integrates with any theme running WordPress version 5.0 or higher. The visual display will be customizable in the future, we plan to add this in the paid version.
    2) Try installing the plugin on a real WordPress site and testing the mobile version there. Because the demo may not display the template correctly. It all depends on the theme you are using.
    3) We are currently developing the ability to add a timer when answering a question. In the next updates this will be available in the paid version.

    Best Regards,

    Codevery LLC

    Plugin Author Codevery LLC

    (@codevery)

    Thank you for your feedback. Our team really appreciates it.

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