bp_core_strip_header_tags( $content )

Remove H1 tag from Content

Description

Parameters

$content

(Required)

Return

(mixed|null|string|string[])

Source

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

function bp_core_strip_header_tags( $content ) {
	$content = preg_replace( '/<h1[^>]*>([\s\S]*?)<\/h1[^>]*>/', '', $content );

	return $content;
}

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.