Skip to content

Instantly share code, notes, and snippets.

@imath
Created October 12, 2014 10:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imath/ae2953c1e19a7fc0954f to your computer and use it in GitHub Desktop.
Save imath/ae2953c1e19a7fc0954f to your computer and use it in GitHub Desktop.
Neutralize mentions in WP Admin
<?php
function neutralize_at_mentions( $retval = false ) {
if ( ! is_admin() ) {
return $retval;
}
if ( defined( 'DOING_AJAX' ) ) {
$retval = DOING_AJAX;
} else {
$retval = false;
}
return $retval;
}
add_filter( 'bp_activity_maybe_load_mentions_scripts', 'neutralize_at_mentions', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment