Skip to content

Commit

Permalink
Added comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauteri committed Jan 11, 2025
1 parent e5e3182 commit 9f684c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions includes/core/classes/blocks/class-rsvp-response.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ protected function __construct() {
*/
protected function setup_hooks(): void {
add_filter( 'render_block', array( $this, 'transform_block_content' ), 10, 2 );
// Priority 11 ensures this runs after transform_block_content which modifies the block structure.
add_filter( 'render_block', array( $this, 'attach_dropdown_interactivity' ), 11, 2 );
add_filter( 'get_avatar_data', array( $this, 'modify_avatar_for_gatherpress_rsvp' ), 10, 2 );
add_filter( 'block_type_metadata', array( $this, 'add_rsvp_to_comment_ancestor' ) );
Expand Down
1 change: 1 addition & 0 deletions includes/core/classes/blocks/class-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ protected function __construct() {
protected function setup_hooks(): void {
add_filter( 'render_block', array( $this, 'transform_block_content' ), 10, 2 );
add_filter( 'render_block', array( $this, 'apply_rsvp_button_interactivity' ), 10, 2 );
// Priority 11 ensures this runs after transform_block_content which modifies the block structure.
add_filter( 'render_block', array( $this, 'apply_guest_count_watch' ), 11, 2 );
}

Expand Down

0 comments on commit 9f684c0

Please sign in to comment.