• vaibhav22

    (@vaibhav22)


    I have a plugin which hooks itself to “doccontent” defined in functions.php through a callback function. The function returns an array. I want to store the contents of that array in my own custom page. How do i achieve this? I have tried through add_filter, the array gets returned but i don’t know how to access it.

    $slots = array();
    doccontenthook();// this is the hook. I want to store the returned array in $slots

The topic ‘save data returned from wordpress plugin in custom page’ is closed to new replies.