Shortcode called incorrect
-
add_shortcode
should really be called in theinit
function and inside yourinit
or at least__constructor
methods.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://wordpress.org/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.