Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Filter: curatewp_section_posts
add_filter( 'curatewp_section_posts', function( $curated_posts, $section ) {
// Filter out a post with the ID of 25.
return array_filter( $curated_posts, function( $post_id ) {
return 25 !== $post_id;
} );
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment