src/Metabox/Metabox.php
public function handle(array $args)
    {
        $this->filter->add('themosis_admin_global', function ($data) use ($args) {
            if (! isset($data['metabox'])) {
                $data['metabox'] = [$this->id];
            } elseif (isset($data['metabox'])) {
                $data['metabox'][] = $this->id;
            }

            /*
             * Provides WP_Post data.
             */
            $data['post'] = $args['post'];

            return $data;
        });
    }
public function handle(array $args)
    {
        $this->filter->add('themosis_admin_global', function ($data) use ($args) {
            if (! isset($data['metabox'])) {
                $data['metabox'] = [$this->id];
            } elseif (isset($data['metabox'])) {
                $data['metabox'][] = $this->id;
            }

            /*
             * Provides WP_Post data.
             */
            $data['post'] = $args['post'];

            return $data;
        });
    }
public function handle ( array $ args ) { $ this -> filter -> add ( 'themosis_admin_global' , function ( $ data ) use ( $ args ) { if ( ! isset ( $ data [ 'metabox' ] ) ) { $ data [ 'metabox' ] = [ $ this -> id ] ; } elseif ( isset ( $ data [ 'metabox' ] ) ) { $ data [ 'metabox' ] [ ] = $ this -> id ; } /*
             * Provides WP_Post data.
             */ $ data [ 'post' ] = $ args [ 'post' ] ; return $ data ; } ) ; }
Core framework metabox management. Default callback.

@param array $args
Core framework metabox management . Default callback .