I want to get a variable from a class in a function , the variable has arrays and i want to print all of theme in foreach loop
Here is my code :
class MP {
public function mp_setup_fields() {
$fields_socialmedia = array(
array(
'label' => 'شبکه های اجتماعی',
'id' => '',
'type' => 'hidden',
'section' => 'mp_custom_section',
),
);
}
}
I want get $fields_socialmedia in my home page