Skip to content

mc_get_current_url

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter the URL returned for the current URL.

Auto-generated Example

add_filter(
   'mc_get_current_url',
    function( string $current_url ) {
        // Your code here.
        return $current_url;
    }
);

Parameters

  • string $current_url Current URL according to wp_rewrite.

Returns

string

Files

apply_filters( 'mc_get_current_url', $current_url )

← All Hooks

Clone this wiki locally