WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Smart Archives Reloaded] Bug/Typo in the Plugin Documentation (2 posts)

  1. AzizLight
    Member
    Posted 4 years ago #

    Hi,
    I just passed 15 minutes not understanding because there is a bug/typo in the documentation. It says that to change the markup you need to extend the SAR_Generator (no problem there) and then override the generate_[type] methods, I quote:

    smart_archives_load_default_generator();
    
    class SAR_Custom_Generator extends SAR_Generator {
    	protected static function generate_fancy() {
    		// your custom code here
    	}
    
    	protected static function generate_block() {
    		// more of your custom code here
    	}
    
    	...
    }

    The probleme here is that the generate_* methods in the parent class are not static (at least not anymore), so they shouldn't be either in the child class.

    Hope it helped

  2. scribu
    Member
    Posted 4 years ago #

    Updated. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic