Skip to content

Instantly share code, notes, and snippets.

@timiwahalahti
Created April 7, 2021 16:51
Show Gist options
  • Save timiwahalahti/3a3085bf6320db4ee5d7795965cbd868 to your computer and use it in GitHub Desktop.
Save timiwahalahti/3a3085bf6320db4ee5d7795965cbd868 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'bp_get_template_part', 'sippis_short_circuit_activity_post_form', 10, 3 );
function sippis_short_circuit_activity_post_form( $templates, $slug, $name ) {
if ( 'activity/post-form' === $slug ) {
return false;
}
return $templates;
} // end sippis_short_circuit_activity_post_form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment