Skip to content

Data from renderComponent accessible by rendered component's functions.php #399

Answered by joeatduckpin
joeatduckpin asked this question in Q&A
Discussion options

You must be logged in to vote

So I guess ignore this question...I hadn't even thought to just output $data inside my component's functions.php file, because that houses all the data that was sent via the renderComponent.

add_filter('Flynt/addComponentData?name=PartialComponentCard', function ($data) {
  print_r($data);

  return $data;
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joeatduckpin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant