If I’ve understood this correctly, the answer is a simple one.
If these are both in the same class, set a property on your class for storing the output of the first function that runs. From there, any subsequent functions can access the data stored on that property.
Related Posts:
- How to have the right design for a custom post type without accessing themes
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- ACF in wordpress
- Custom post type in Custom widget – $listItem
- Show Post columns to specific users on condition
- Custom post type that lets users create a set of posts?
- Custom Fields as Post Type Options
- Where, When, & How to Properly Flush Rewrite Rules Within the Scope of a Plugin?
- How to Add Custom Taxonomy To Woocommerce Plugin
- Development of a WordPress Search Plugin – Best Practices
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- echo value from ‘select’ field type into page template using cmb2?
- wordpress plugin error handling
- register_taxonomy with multiple object type and update_count_callback
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- WP Query group/order by category name
- Remove POST_TYPE from custom post type permalink
- Using posts and postmeta table to store custom Address Book Plugin data
- How to register custom post types in a plugin?
- how to set default value for checkbox in wordpress
- How to append element after thumbnail
- handling csv data with a custom post type
- Customize permalink when creating a post
- Custom Post Type | Fatal Error on register_post_type()
- Set object terms not working on plugin activation
- How to add the post ID (or any other post data) to a Contact Form 7 mail?
- Custom Post Type Navigation on Custom Field
- Update menu when saving settings
- custom post type not showing in menu
- Custom posts don’t work
- Adding a custom post type taxonomy template in plugin
- Replace text in post from cvs
- Give a permalink to Custom Post Types without title
- Orderby CPT custom fields not working
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Custom setting to show or hide field
- Addition of custom option panel crashes Media Library & Admin Area
- Dynamic dropdown select values depending on other custom field value
- Tracking changes in admin-page so user gets warning when leaving the page
- How to use TinyMCE Editor for one of my custom post meta field?
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- custom comments form for custom post type
- Custom post type’s extra fields – how to handle?
- Send a conditional email notification when a custom field value changes in Post Type
- How to create multiple editor?
- post_parent in custom post type
- How to Resize the Custom Post Images?
- Amazon.com intergration with WordPress?
- Unable to format dates to put in event calendar
- Modify Posts from Custom_Post_Type within the plugin
- Validate Custom Post Type fields
- Custom post types, disable fields
- Is it possible to sort metabox teaxtarea values?
- Generating and downloading files with WP API
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Types plugin custom post add_action hooks
- shopping cart plugin development
- how can i show a google map in custom post type
- Fill custom fields when saving custom post types
- Writing a custom Glossary plugin
- Mandatory field in Custom post
- How to store the third party script with HTML code in the wordpress custom input field?
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How to upload an image to a custom post type
- Create multiple posts when a custom post is created
- Unable to gather Image URL from Custom Post Type’s; Custom Meta Field
- Restrict Custom Post Type to One Item
- Custom Post Type Front Page Gives 404
- Error when moving custom post type to bin
- Insert custom taxonomy into category query
- Simple Data picker meta box
- Create Inclusions and exclusions
- Custom Fields through plugin in a Custom Post Type
- Can’t save custom post type fields
- Multiple domains, Single database, 1 Parent/Master with all content, other domains/slaves with filtered content (based on “location” variable)
- Error in WP Query. If variable is empty it is displaying previous post value
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- get_post_types doesn’t work in plugin
- Custom Info Box at end of posts?
- Add Excerpt On Quicksand Plugin
- Custom Post Types in plugins?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- Extending a CPT by Created by another plugin
- Retrieve a post with its ACF repeater fields in wordpress
- Custom Post Type featured option
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Automatically update custom field in all posts of a custom post type
- Add custom field to Posts and sort by it
- Custom posts type for individual pages?
- Pagination hitting 404 page on /page/4
- Custom Meta Box returns no HTML
- custom post type get_posts() function not work
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- % encoded URL giving 404 error in WordPress
- Publish post and create additional posts with same content
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu