[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Deprecated functions. 5 * 6 * @deprecated 7.0.0 7 */ 8 9 // Exit if accessed directly. 10 defined( 'ABSPATH' ) || exit; 11 12 /** 13 * Mark the posted activity as spam, if it contains disallowed keywords. 14 * 15 * Use bp_activity_check_disallowed_keys() instead. 16 * 17 * @since 1.6.0 18 * @deprecated 7.0.0 19 * 20 * @param BP_Activity_Activity $activity The activity object to check. 21 */ 22 function bp_activity_check_blacklist_keys( $activity ) { 23 _deprecated_function( __FUNCTION__, '7.0.0', 'bp_activity_check_disallowed_keys()' ); 24 return bp_activity_check_disallowed_keys( $activity ); 25 } 26 27 /** 28 * Check for blocked keys. 29 * 30 * Use bp_core_check_for_disallowed_keys() instead. 31 * 32 * @since 1.6.0 33 * @since 2.6.0 Added $error_type parameter. 34 * @deprecated 7.0.0 35 * 36 * @param int $user_id User ID. 37 * @param string $title The title of the content. 38 * @param string $content The content being posted. 39 * @param string $error_type The error type to return. Either 'bool' or 'wp_error'. 40 * @return bool|WP_Error True if test is passed, false if fail. 41 */ 42 function bp_core_check_for_blacklist( $user_id = 0, $title = '', $content = '', $error_type = 'bool' ) { 43 _deprecated_function( __FUNCTION__, '7.0.0', 'bp_core_check_for_disallowed_keys()' ); 44 return bp_core_check_for_disallowed_keys( $user_id, $title, $content, $error_type ); 45 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Nov 21 01:00:57 2024 | Cross-referenced by PHPXref 0.7.1 |