I confirmed this is a bug, but don’t have an ETA on when it will be fixed.
https://github.com/Automattic/camptix/issues/120
Anonymous User
(@anonymized-1391468)
I don’t know the CampTix plugin intimately, but have been working on integration with my plugin.
Would something like the following replacement for shortcode_callback be a reasonable approach to support do_shortcode?
function shortcode_callback( $atts, $content, $tag) {
if ( ! $this->did_template_redirect ) {
//$this->log( 'Something is seriously wrong, did_template_redirect is false.', 0, null, 'critical' );
//return __( 'An error has occurred.', 'camptix' );
global $post;
$args = '';
$sep = ' ';
foreach ($atts as $key => $value) {
$args = $sep . $key . '="' . $value . '"';
$sep = ', ';
}
$post->post_content = '[' . $tag . $args . ']';
$this->template_redirect();
}
wp_enqueue_script( 'camptix' ); // js in footer
return $this->shortcode_contents;
}