You appear to be a bot. Output may be restricted
Description
Create missing parameters for this shortcode
Usage
_oiksc_create_param( $syntax, $plugin, $code, $post_id );
Parameters
- $syntax
- ( array ) required – shortcode syntax arary of $param => bw_skv()
- $plugin
- ( ID ) required – the post ID of the plugin ( NOT NEEDED ? )
- $code
- ( string ) required – the shortcode name
- $post_id
- ( ID ) required – the post ID for the shortcode
Returns
voidSource
File name: oik-shortcodes/admin/oik-shortcodes.phpLines:
1 to 17 of 17
function _oiksc_create_param( $syntax, $plugin, $code, $post_id ) { if ( is_array( $syntax ) ) { foreach ( $syntax as $param => $skv ) { p( "Parameter $param" ); $post = oiksc_get_sc_param( $code, $param, $post_id ); if ( $post ) { // Check the skv values? p( "$param already defined for $code:" . $post->ID ); oiksc_yoastseo( $post->ID, $code, $param, "shortcode parameter", null); } else { $param_post_id = oiksc_create_oik_sc_param( $post_id, $code, $param, $skv ); oiksc_yoastseo( $param_post_id, $code, $param, "shortcode parameter", null ); p( "$param created for $code. ID: $param_post_id" ); } } } }View on GitHub