wc_pos_url

Construct the POS permalink.

Description

(string|void) wc_pos_url( (string) $page = '' ); 

Returns (string|void)

Parameters (1)

0. $page — Optional. (string) => ''
The page.

Usage

  1. if ( !function_exists( 'wc_pos_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-pos/includes/wc-pos-functions.php'; 
  3.  
  4. // The page. 
  5. $page = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wc_pos_url($page); 
  9.  

Defined (1)

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

/includes/wc-pos-functions.php  
  1. function wc_pos_url( $page = '' ) { 
  2. $slug = WC_POS_Admin_Permalink::get_slug(); 
  3. return home_url( $slug . '/' .$page );