-
Notifications
You must be signed in to change notification settings - Fork 16
mc_db_prefix
github-actions[bot] edited this page May 15, 2026
·
4 revisions
Filter the database prefix. Useful when accessing a remote database with a different prefix.
add_filter(
'mc_db_prefix',
function(
{string} $wpdb->prefix,
{string} $table,
{int|string|bool}
) {
// Your code here.
return $wpdb->prefix;
},
10,
3
);-
{string}$wpdb->prefixLocal DB prefix. -
{string}$tableDatabase table requested. -
{int|string|bool}$site A site ID, the string 'global' for the main site, or false for defaults. Other variable names:$site
{string}
apply_filters( 'mc_db_prefix', $wpdb->prefix, $table, $site )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )