Commit cf5cc5df authored by Michael Iseard's avatar Michael Iseard
Browse files

Add filters to modal data arrays

parent ba331515
......@@ -52,7 +52,7 @@ class KudosModal {
'modal_text' => isset( $atts['modal_text'] ) ? $atts['modal_text'] : '',
];
return $this->twig->render( '/public/modal/message.modal.html.twig', $data );
return $this->twig->render( '/public/modal/message.modal.html.twig', apply_filters( 'kudos_message_modal_data', $data ) );
}
......@@ -75,7 +75,7 @@ class KudosModal {
]
);
return $this->twig->render( '/public/modal/donate.modal.html.twig', $data );
return $this->twig->render( '/public/modal/donate.modal.html.twig', apply_filters( 'kudos_donate_modal_data', $data ));
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment