bp_blogs_filter_meta_column_name( string $retval )

Filters the column name during blog metadata queries.


Description Description

This filters ‘sanitize_key’, which is used during various core metadata API functions: https://core.trac.wordpress.org/browser/branches/4.9/src/wp-includes/meta.php?lines=47,160,324. Due to how we are passing our meta type, we need to ensure that the correct DB column is referenced during blogmeta queries.

See also See also


Top ↑

Parameters Parameters

$retval

(string) (Required)


Top ↑

Return Return

(string)


Top ↑

Source Source

File: bp-blogs/bp-blogs-filters.php

function bp_blogs_filter_meta_column_name( $retval ) {
	if ( 'bp_blog_id' === $retval ) {
		$retval = 'blog_id';
	}
	return $retval;
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.