Hot answers tagged

3

Your issue is in the callable object you add: array( __CLASS__, "build_shortcode") This translates to: array( "WC_Product_Categories", "build_shortcode") Which is equivalent to: WC_Product_Categories::build_shortcode(); But build_shortcode is not a static function/method, and static functions/methods do not have a $this object, because there is no ...


3

You'll need to log onto your FTP server and goto the wp-content folder -> plugins -> and delete the GZIP plugin you have installed. If you are not sure about FTP, you can probably try and go through your web server control panel, they usually have some sort of file browsing option. You might also need to check the .htaccess file also, but just try removing ...


2

the_title() calls your function again. If you want to avoid that, remove the callback inside of your function: function filter_title_after() { remove_filter( current_filter(), __FUNCTION__ ); // the rest of your code. But you shouldn’t call the_title() in your function at all: it prints the title – this is not what you want – and you get the ...


1

Found the problem. It was a problem with my host, in the path the ID3 folder name was uppercase, while on the server for some reason it was lowercase, this is why it didn't find it.


1

to link plugin and theme, I recommend you to use hooks. In the theme, you create a new hook with do_action("under_the_picture");. And in the plugin you make a hook like this : add_action("under_the_picture", function () { echo "plugin data to display under the picture"; }); then when the plugin is not activated, the theme place "under_the_picture" is ...



Only top voted, non community-wiki answers of a minimum length are eligible