Open yumyo opened 4 years ago
prefix_do_wampum_popup
is just an example usage. You can't call that callback without also creating the function with the same name.
Not sure I am following @JiveDig, I am using the complete example from the readme:
add_action( 'wampum_popups', 'prefix_do_wampum_popup' );
function prefix_do_wampum_popup() {
// Bail if not a single post
if ( ! is_singular('post') ) {
return;
}
$content = '// Some HTML';
$args = array(
'type' => 'timed',
'style' => 'slideup',
);
wampum_popup( $content, $args );
}
To which function are you referring to?
If you use that exact code it should work. That’s exactly how we use it. Do you have that code or a modified version?
The code example throws the following error:
The same applies if using any other naming.