Skip to content

Instantly share code, notes, and snippets.

@Musilda
Last active May 25, 2019 05:45
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/96da9fdfabc4078497c991026577e309 to your computer and use it in GitHub Desktop.
Save Musilda/96da9fdfabc4078497c991026577e309 to your computer and use it in GitHub Desktop.
<?php
$statuses = array(
'completed',
'failed',
'cancelled',
'refunded'
);
return apply_filters( 'fio_blocked_order_statuses', $statuses );
add_filter( 'fio_blocked_order_statuses', 'extend_fio_blocked_order_statuses' );
function extend_fio_blocked_order_statuses( $statuses ){
$statuses[] = 'nezaplaceno';
return $statuses;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment