Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'bp_ready', 'custom_buddyboss_media_disable_akismet' );
- /**
- * Disable Akismet.
- * BuddyBoss Media plugin add photo links in activity content and because of that Akismet plugin
- * mark activity 'spam'.
- * the Following function will disable the use of Akismet while posting media.
- */
- function custom_buddyboss_media_disable_akismet() {
- if ( isset( $_POST['pics_uploaded'] ) && ! empty( $_POST['pics_uploaded'] ) ) {
- add_filter( 'bp_activity_use_akismet', '__return_false' );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement