Is there any more elegant way to write an IF with multiple OR conditions? Currently, my code is like below, but it doesn't look interesting like that.
if ( has_block( 'cgb/block-imoney-blocks' ) || has_block( 'cgb/block-idh-affiliates' ) || has_block( 'cgb/block-idh-best-summary') || has_block('cgb/block-idh-highlights')) {
echo 'Value Found';
}
Aucun commentaire:
Enregistrer un commentaire