WordPress.org

Make WordPress Core

Ticket #17594: 17594.diff

File 17594.diff, 487 bytes (added by technosailor, 3 years ago)

adds pre_get_home_url action.

  • wp-includes/link-template.php

     
    19581958 * @return string Home url link with optional path appended. 
    19591959*/ 
    19601960function get_home_url( $blog_id = null, $path = '', $scheme = null ) { 
     1961        do_action( 'pre_get_home_url' ); 
     1962         
    19611963        $orig_scheme = $scheme; 
    19621964 
    19631965        if ( !in_array( $scheme, array( 'http', 'https' ) ) )