src/Utils/Debug_Hook.php
public function get_data($priority = null)
    {
        if ($priority === null) {
            return $this->data;
        }

        if (isset($this->data[ $priority ])) {
            return $this->data[ $priority ];
        }

        return [];
    }
public function get_data($priority = null)
    {
        if ($priority === null) {
            return $this->data;
        }

        if (isset($this->data[ $priority ])) {
            return $this->data[ $priority ];
        }

        return [];
    }
public function get_data ( $ priority = null ) { if ( $ priority === null ) { return $ this -> data ; } if ( isset ( $ this -> data [ $ priority ] ) ) { return $ this -> data [ $ priority ] ; } return [ ] ; }
Return all data for the hook.

If $priority is supplied, then only data for that priority is returned.

@since  1.0.0

@param  int $priority The priority to return the hook stack for.
@return array
Return all data for the hook .