PHP code example of mmirus / acf-flexible-content-title
1. Go to this page and download the library: Download mmirus/acf-flexible-content-title 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/ */
mmirus / acf-flexible-content-title example snippets
// change the sub field used in flexible content field title
add_filter('acf_flexible_content_title_field', function($title_field, $flexible_field, $layout) {
return 'my_text_sub_field';
}, 10, 3);