field_before() );
echo wp_kses_post( $this->shortcoder() );
echo '';
echo wp_kses_post( $this->field_after() );
}
public function shortcoder() {
if ( ! empty( $this->field['shortcoder'] ) ) {
$instances = ( is_array( $this->field['shortcoder'] ) ) ? $this->field['shortcoder'] : array_filter( (array) $this->field['shortcoder'] );
foreach ( $instances as $instance_key ) {
if ( isset( ADMINIFY::$shortcode_instances[ $instance_key ] ) ) {
$button_title = ADMINIFY::$shortcode_instances[ $instance_key ]['button_title'];
echo '' . wp_kses_post( $button_title ) . '';
}
}
}
}
}
}