Basically, I am trying to call a get_field that is supposed to work on all “pages” post type. It’s only a True/False ACF. I looked at the WordPress hierarchy and tried Page.php
<?php
namespace App\Controllers;
use Sober\Controller\Controller;
class Page extends Controller
{
public function pageSettings()
{
return (object) array(
'force_container' => get_field('force_container')
);
}
}
Also tried SinglePage.php but no luck.
I tried @debug but I didn’t see the function there.