ms_home_url

Returns an URL for a front-end page with the correct URL schema.

Description

(string) ms_home_url( (string) $path ); 

Returns (string)

The correct URL for a front-end page.

Parameters (1)

0. $path (string)
Argument passed to the home_url() function.

Usage

  1. if ( !function_exists( 'ms_home_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app/helper/class-ms-helper-utility.php'; 
  3.  
  4. // Argument passed to the home_url() function. 
  5. $path = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ms_home_url($path); 
  9.  

Defined (1)

The function is defined in the following location(s).

/app/helper/class-ms-helper-utility.php  
  1. function ms_home_url( $path ) { 
  2. return MS_Helper_Utility::home_url( $path );