You appear to be a bot. Output may be restricted
Description
Query class from class name
Usage
$$post = oikai_get_oik_class_byname( $class );
Parameters
- $class
- ( string ) required – class name
Returns
$post
TO DO
If WP-Parser has been run then we may also be able to find the class from the WP-Parser CPT
Source
File name: oik-shortcodes/shortcodes/oik-api-importer.php
Lines:
1 to 12 of 12
function oikai_get_oik_class_byname( $class ) { oik_require( "includes/bw_posts.php" ); $atts = array(); $atts['post_type'] = "oik_class" ; $atts['numberposts'] = 1; $atts['meta_key'] = "_oik_class_name"; $atts['meta_value'] = $class; $posts = bw_get_posts( $atts ); $post = bw_array_get( $posts, 0, null ); bw_trace2( $post, "oik_class?", true, BW_TRACE_VERBOSE ); return( $post ); }