Skip to content

Extracting WordPress hooks from source #143

@jcomack

Description

@jcomack

Hey there,

I'm attempting to use this package to parse through a WordPress plugin, but I'm running into an issue where I can't seem to expand the possible nodes that get extracted.

So far, I've attempted the following:

Created a ProjectFactory and copy-pasted the default strategies, but replaced the NodesFactory with a custom one so I could add another visitor. In this visitor, I'm able to extract the extra nodes I want (i.e. WordPress hooks / filters), however this information seems to be lost as soon as I dump the data in the factory, meaning I can't access it as a separate piece of information.

To me, this feels like information gets filtered out further down the chain or something? Am I correct in my assumption? And is there any way to ensure these extra nodes that I extracted will be retained in the final result?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions