In the frontend side, there are also some static variables to make our life easier like the Admin side. They can be accessed through MVC_Front_Factory::$variable;
The Variables
MVC_Front_Factory::$act_tables: return active Pods tables. Sample:
array(
'pod_409' => array (
'id' => 409,
'name' => 'pods_something',
'title' => 'Something',
'pod' => 'something',
'type' => 'pod',
'name_field' => 'name',
);
'pods_something' => array(
'id' => 409,
'name' => 'pods_something',
'title' => 'Something',
'pod' => 'something',
'type' => 'pod',
'name_field' => 'name',
);
)
MVC_Front_Factory::$act_pod_tables: A quick way to access Pods table information;
MVC_Front_Factory::$current_page_id: When you can’t use get_the_ID() to get the current page ID, try MVC_Front_Factory::$curPageID_int;
MVC_Front_Factory::$messages: You can save your global messages into MVC_Front_Factory::$messages_arr;
MVC_Front_Factory::$options: Save your global options into MVC_Front_Factory::$options_arr if you like;
MVC_Front_Factory::$styles: The collection of style sheets enqueued into MVC_Front_Factory::$styles_arr;
MVC_Front_Factory::$scripts: The collection of JavaScript files enqueued into MVC_Front_Factory::$scripts_arr;