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

Prefix distributable_post_types filter #158

Merged
merged 2 commits into from
Jul 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static function credentials_form( $args = array() ) {
$args[ self::API_REDIRECT_URI ] = $redirect_uri;

// Display any authorization or token errors.
do_action( 'oauth_admin_notices' );
do_action( 'dt_oauth_admin_notices' );

// If anything is missing, we aren't authorized - show the credentials form.
if (
Expand Down
2 changes: 1 addition & 1 deletion includes/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function distributable_post_types() {
* @since 1.0.0
* @param array Post types that are distributable. Default 'all post types except dt_ext_connection and dt_subscription'.
*/
return apply_filters( 'distributable_post_types', array_diff( $post_types, [ 'dt_ext_connection', 'dt_subscription' ] ) );
return apply_filters( 'dt_distributable_post_types', array_diff( $post_types, [ 'dt_ext_connection', 'dt_subscription' ] ) );
}

/**
Expand Down