skt_full_width_get_slug_by_id

The SKT Full Width skt full width get slug by id function.

Description

skt_full_width_get_slug_by_id( $id ); 

Parameters (1)

0. $id
The id.

Usage

  1. if ( !function_exists( 'skt_full_width_get_slug_by_id' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4. // The id. 
  5. $id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = skt_full_width_get_slug_by_id($id); 
  9.  

Defined (1)

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

/functions.php  
  1. function skt_full_width_get_slug_by_id($id) { 
  2. $post_data = get_post($id, ARRAY_A); 
  3. $slug = $post_data['post_name']; 
  4. return $slug;