Skip to content
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

Feature Request: Ability to filter post type on push #311

Open
psorensen opened this issue Jan 19, 2019 · 3 comments
Open

Feature Request: Ability to filter post type on push #311

psorensen opened this issue Jan 19, 2019 · 3 comments
Labels
help wanted type:enhancement New feature or request.

Comments

@psorensen
Copy link
Contributor

psorensen commented Jan 19, 2019

Our use case: We have a source site with multiple custom post types. We would like to push these custom post types to a remote site as a simple posts.

Applying a filter to the variable at here does the trick.

from
$post_type = get_post_type( $post_id );

to
$post_type = apply_filters( 'dt_push_post_type', get_post_type( $post_id ) );

Happy to submit a PR if this sounds like a good idea.

@helen
Copy link
Contributor

helen commented Jan 23, 2019

Would be happy to take a look at a PR and consider for the next release (aiming for 1.4) - at first glance I would imagine you would want to provide more context to the filter.

@jeffpaul jeffpaul added type:enhancement New feature or request. needs:feedback This requires reporter feedback to better understand the request. labels Apr 5, 2019
@jeffpaul
Copy link
Member

jeffpaul commented Apr 5, 2019

@psorensen checking in to see if you're able to work on a PR for this as noted?

@jeffpaul
Copy link
Member

jeffpaul commented Jun 6, 2019

@psorensen any chance you'd be able to work up a PR for that in hopes of it landing in an upcoming release?

@jeffpaul jeffpaul modified the milestones: 2.0.0, Future Release Jun 6, 2019
@jeffpaul jeffpaul added help wanted and removed needs:feedback This requires reporter feedback to better understand the request. labels Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

3 participants