You appear to be a bot. Output may be restricted
Description
Retrieve the oik_api post by API name
Usage
$array = oiksc_api_cache::get_oik_api_byname( $function );
Parameters
- $function
- ( string ) required – API name as function or class::method
Returns
array of post IDs – hopefully just the one
Source
File name: oik-shortcodes/classes/class-oiksc-api-cache.php
Lines:
1 to 19 of 19
function get_oik_api_byname( $function ) { // bw_trace2(); //bw_backtrace(); $this->post_type = "oik_api"; $this->meta_key = "_oik_api_name"; $this->meta_value = $function; $posts = $this->get_cached(); if ( !$posts ) { oik_require( "admin/oik-shortcodes.php", "oik-shortcodes" ); // This only returns one post object, or null $post = oiksc_get_oik_api_byname( $function ); //$this->map_posts( array( $post->ID ) ); if ( $post ) { $this->map( $post->ID ); $posts = array( $post->ID ); } } return( $posts ); }