For example I am inside a file1.php with a namespaced class, like so:
<?php
namespace FrameWork\CPT;
class CPT{
.....
public function register_custom_post_type()
{
$args = array(
'register_meta_box_cb' => //PROBLEM: How to reference from a different file
which also contains a namespaced class
register_post_type('plugin-cpt', $args);
}
How do I access a public function from a namespaced class from file2.php?
<?php
namespace FrameWork\Helper;
class Metabox{
.....
public function register_metaboxes()
{
// I want to reference this function
}