public function enqueueGumroadLibs(string $which = 'all')
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        if ($which === 'all' || $which === 'overlay') {
            $data = $this->enqueueGumroadOverlayLibs();
        }
        if ($which === 'all' || $which === 'embed') {
            $data = array_merge_recursive($data ?? [], $this->enqueueGumroadEmbedLibs());
        }
        return $data = $data ?? [];
    }
public function enqueueGumroadLibs(string $which = 'all')
    {
        if (($data = $this->didEnqueueLibs(__METHOD__))) {
            return $data; // Did this already.
        } // We only need to enqueue once.

        if ($which === 'all' || $which === 'overlay') {
            $data = $this->enqueueGumroadOverlayLibs();
        }
        if ($which === 'all' || $which === 'embed') {
            $data = array_merge_recursive($data ?? [], $this->enqueueGumroadEmbedLibs());
        }
        return $data = $data ?? [];
    }
public function enqueueGumroadLibs ( string $ which = 'all' ) { if ( ( $ data = $ this -> didEnqueueLibs ( __METHOD__ ) ) ) { return $ data ; // Did this already. } // We only need to enqueue once. if ( $ which === 'all' || $ which === 'overlay' ) { $ data = $ this -> enqueueGumroadOverlayLibs ( ) ; } if ( $ which === 'all' || $ which === 'embed' ) { $ data = array_merge_recursive ( $ data ?? [ ] , $ this -> enqueueGumroadEmbedLibs ( ) ) ; } return $ data = $ data ?? [ ] ; }
Enqueue Gumroad libs.

@since 17xxxx Gumroad libs.

@param string $which One of `overlay`, `embed`, `all`.

@return array Library details.
Enqueue Gumroad libs .