Hi all,
This may sound quite basic, but I haven't found the solution after looking around for a while and testing several options.
I need to pass a dynamic variable to a page, with a value that's coming from an API, something like this:
public static function getNumber() {
$number = '123'; // Code to obtain number
return $number;
}
But not sure if this actually works as I haven't found a way to pass this to the page content. I'd like this number to appear within the copy, so it has to be passed as a variable to the page content.
Any pointers?
Thanks.