Skip to content

Commit

Permalink
feat: filter allowed assets
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpeixe committed Oct 11, 2024
1 parent 047850d commit 893a9c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions includes/class-modal-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,13 @@ public static function dequeue_scripts() {
'stripe',
];

/**
* Filters the allowed assets to render in the modal checkout
*
* @param string[] $allowed_assets Array of allowed assets handles.
*/
$allowed_assets = apply_filters( 'newspack_blocks_modal_checkout_allowed_assets', $allowed_assets );

global $wp_scripts, $wp_styles;

foreach ( $wp_scripts->queue as $handle ) {
Expand Down

0 comments on commit 893a9c4

Please sign in to comment.