Skip to content

Instantly share code, notes, and snippets.

@Musilda
Created August 10, 2019 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Musilda/c29ad1a3e8569a4d65b25d4447fc83ad to your computer and use it in GitHub Desktop.
Save Musilda/c29ad1a3e8569a4d65b25d4447fc83ad to your computer and use it in GitHub Desktop.
<?php
//Defined
$statuses = array(
'completed',
'failed',
'cancelled',
'refunded'
);
apply_filters( 'csob_bank_blocked_order_statuses', $statuses );
//Snippet
add_filter( 'csob_bank_blocked_order_statuses', 'extend_csob_blocked_statuses' );
function extend_csob_blocked_statuses( $statuses ){
$statuses[] = 'nezaplaceno';
return $statuses;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment