bp_is_activity_link_preview_active( bool $default = false )

Check whether Activity Link Preview is enabled.

Description

Parameters

$default

(Optional) Fallback value if not found in the database. Default: true.

Default value: false

Return

(bool) True if Link Preview is enabled, otherwise false.

Source

File: bp-core/bp-core-options.php

1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
function bp_is_activity_link_preview_active( $default = false ) {
 
    /**
     * Filters whether or not Activity Link Preview is enabled.
     *
     * @since BuddyBoss 1.0.0
     *
     * @param bool $value Whether or not Activity Link Preview is enabled.
     */
    return (bool) apply_filters( 'bp_is_activity_link_preview_active', (bool) bp_get_option( '_bp_enable_activity_link_preview', $default ) );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.