New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle lesson hooks for lessons which contain a block #3935
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
6df8b76
to
ab04e5c
Compare
It seems that when I moved the 'Contact Teacher' notice to the constructor I forgot to remove the previous one. This is now fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works well!
Just a small suggestion, not critical.
@@ -33,6 +33,11 @@ public function register_block() { | |||
'render_callback' => [ $this, 'render_contact_teacher_block' ], | |||
] | |||
); | |||
|
|||
// phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Arguments used for comparison. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not critical, but WDYT to handle it separately since it's not related to the block register?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 606e985
606e985
to
ae77c05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
Changes proposed in this Pull Request
footer_quiz_call_to_action
andsend_message_link
. Methodsend_message_link
adds a notice which is going to be handled by the Contact Teacher block. Methodfooter_quiz_call_to_action
does not add any notices which means that no other changes for notices are required.Testing instructions