AnsPress_BP_Hooks::ap_the_answer_content( string $content )
Description #
Filter answer content and link metions.
Parameters #
- $contentstring (Required) Contents.
Source #
File: addons/free/buddypress.php
public static function ap_the_answer_content( $content ) {
global $post;
if ( ! function_exists( 'bp_activity_at_name_filter' ) ) {
require_once WP_PLUGIN_DIR . '/buddypress/bp-activity/bp-activity-filters.php';
}
if ( 'answer' === $post->post_type ) {
return bp_activity_at_name_filter( $content );
}
return $content;
}
Expand full source code Collapse full source code View on GitHub: addons/free/buddypress.php:327
Add your comment