PHP code example of davidwebca / acf-block-style-location
1. Go to this page and download the library: Download davidwebca/acf-block-style-location library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
davidwebca / acf-block-style-location example snippets
$acfBuilder->setLocation('acf_block_style', '==', 'acf/blockname:stylename');
$acfBuilder->setLocation('acf_block_style', '==', 'acf/postlist:default'); /* Block style class is "is-style-default" */
$acfBuilder->setLocation('acf_block_style', '!=', 'acf/postlist:default'); /* Block style class is "is-style-default" */