You appear to be a bot. Output may be restricted
Description
OK, but we also want to link to PHP stuff So we need to be able to call that function
Usage
oikapi_simple_link( $api, $posts );
Parameters
- $api
- ( mixed ) required –
- $posts
- ( mixed ) required –
Returns
voidSource
File name: oik-shortcodes/shortcodes/oik-api.phpLines:
1 to 12 of 12
function oikapi_simple_link( $api, $posts ) { if ( $posts ) { $post = bw_array_get( $posts, 0, null ); } else { $post = null; } if ( $post ) { alink( "bw_api", get_permalink( $post ), $api, $post->title ); } else { e( $api ); } }View on GitHub