wpme_get_shortlink_handler

The Jetpack by WordPress.com wpme get shortlink handler function.

Description

wpme_get_shortlink_handler( $shortlink, $id, $context, $allow_slugs ); 

Parameters (4)

0. $shortlink
The shortlink.
1. $id
The id.
2. $context
The context.
3. $allow_slugs
The allow slugs.

Usage

  1. if ( !function_exists( 'wpme_get_shortlink_handler' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortlinks.php'; 
  3.  
  4. // The shortlink. 
  5. $shortlink = null; 
  6.  
  7. // The id. 
  8. $id = null; 
  9.  
  10. // The context. 
  11. $context = null; 
  12.  
  13. // The allow slugs. 
  14. $allow_slugs = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = wpme_get_shortlink_handler($shortlink, $id, $context, $allow_slugs); 
  18.  

Defined (1)

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

/modules/shortlinks.php  
  1. function wpme_get_shortlink_handler( $shortlink, $id, $context, $allow_slugs ) { 
  2. return wpme_get_shortlink( $id, $context, $allow_slugs );