Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#34966 closed enhancement (maybelater)

Add new filter for return URL in Customizer

Reported by: rabmalin's profile rabmalin Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: Customize Keywords:
Focuses: administration Cc:

Description

Since 4.4 return URL in Customizer is managed from get_return_url() [class-wp-customize-manager.php]. I wanted to override that return URL but I could not find filter. It would be great if we could add a filter for the URL.

Change History (1)

#1 @westonruter
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

@rabmalin You can accomplish this via:

<?php
add_action( 'customize_controls_init', function() {
        global $wp_customize;
        $my_custom_return_url = '...';
        $wp_customize->set_return_url( $my_custom_return_url );
} );
Note: See TracTickets for help on using tickets.