jetpack_subscriptions_post_was_ever_published_capability

jetpack_subscriptions_post_was_ever_published_capability

Hook Type: filter

See hook in core

Displaying hooks found in version: jetpack.14.0

apply_filters('jetpack_subscriptions_post_was_ever_published_capability') is found 1 times:

  • /modules/subscriptions.php line 942
    		 * @since 13.4
    		 *
    		 * @param string $capability User capability needed to view if a post was ever published. Default to publish_posts.
    		 */
    		$capability = apply_filters( 'jetpack_subscriptions_post_was_ever_published_capability', 'publish_posts' );
    		if ( current_user_can( $capability ) ) {
    			return true;
    		}
    		return false;
    	}