Add for esc_url()
-
Please add functional in your plugin for “esc_url()” function:
public function clean_url( $good_protocol_url, $original_url, $_context ) { return str_replace(array('https://' . $_SERVER['HTTP_HOST'], 'https://' . $_SERVER['HTTP_HOST']), '', $good_protocol_url); } add_filter( 'clean_url', array( $this, 'clean_url' ), 100, 3 );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Add for esc_url()’ is closed to new replies.