bbp_admin_setting_callback_use_autoembed()

Allow oEmbed in replies

Description

Source

File: bp-forums/admin/settings.php

function bbp_admin_setting_callback_use_autoembed() {
?>

	<input name="_bbp_use_autoembed" id="_bbp_use_autoembed" type="checkbox" value="1" <?php checked( bbp_use_autoembed( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_use_autoembed' ); ?> />
	<label for="_bbp_use_autoembed"><?php esc_html_e( 'Embed media (YouTube, Twitter, Vimeo, etc&hellip;) directly into discussions and replies', 'buddyboss' ); ?></label>

<?php
}

Changelog

Changelog
Version Description
bbPress (r3752) 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.