Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PodsAPI->load_object() to request specific parameters #4002

Closed
jamesgol opened this issue Feb 19, 2017 · 0 comments
Closed

Allow PodsAPI->load_object() to request specific parameters #4002

jamesgol opened this issue Feb 19, 2017 · 0 comments
Labels
Type: Enhancement Enhancements to features that already exist, but are not major additions

Comments

@jamesgol
Copy link
Contributor

Could be either via a passed param or a filter.

Currently returns:

        $object = array(
            'id' => $_object[ 'ID' ],
            'name' => $_object[ 'post_title' ],
            'code' => $_object[ 'post_content' ],
            'type' => str_replace( '_pods_', '', $_object[ 'post_type' ] ),
            'slug' => $_object[ 'post_name' ]
        );

Plus all of the post_meta associated with the ID.

Was looking to also get the post_modified date, can work around the issue but might be nice for the future.

@pglewis pglewis added the Type: Enhancement Enhancements to features that already exist, but are not major additions label Mar 6, 2017
@pods-framework pods-framework locked and limited conversation to collaborators Aug 11, 2022
@sc0ttkclark sc0ttkclark converted this issue into discussion #6728 Aug 11, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Type: Enhancement Enhancements to features that already exist, but are not major additions
Projects
None yet
Development

No branches or pull requests

2 participants