caldera_metaplate_get_metastack

Get metaplate data by ID or slug.

Description

(array|bool) caldera_metaplate_get_metastack( (string) $id_or_slug ); 

Returns (array|bool)

Returns the array for the metaplate or false if not found.

Parameters (1)

0. $id_or_slug (string)
The id or slug.

Usage

  1. if ( !function_exists( 'caldera_metaplate_get_metastack' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'metaplate/vendor/calderawp/metaplate-core/src/functions.php'; 
  3.  
  4. // The id or slug. 
  5. $id_or_slug = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = caldera_metaplate_get_metastack($id_or_slug); 
  9.  

Defined (1)

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

/vendor/calderawp/metaplate-core/src/functions.php  
  1. function caldera_metaplate_get_metastack( $id_or_slug ) { 
  2. return calderawp\metaplate\core\data::get_metaplate( $id_or_slug ); 
  3.