You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered: