Shortcode called incorrect
-
add_shortcodeshould really be called in theinitfunction and inside yourinitor at least__constructormethods.Calling the the shortcode with staticly generates an error since it’s not a static method.
I would suggest moving it into the plugin class or at least calling the object you created just before the add_shortcode function $EDD_Software_Specs like so:
add_shortcode( 'edd-software-specs', array( $EDD_Software_Specs, 'edd_software_specs_shortcode' ) );https://ww.wp.xz.cn/plugins/easy-digital-downloads-software-specs/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Shortcode called incorrect’ is closed to new replies.