[Resolved] How do I update my GP Premium hooks addon without deleting my data/settings?

Home Forums Support [Resolved] How do I update my GP Premium hooks addon without deleting my data/settings?

Home Forums Support How do I update my GP Premium hooks addon without deleting my data/settings?

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #69084
    Pete

    How do I update my GP Premium addon without deleting my GP Hooks data/settings?

    #69251
    Tom
    Lead Developer
    Lead Developer

    Updating won’t delete any settings – updating a plugin simply removes the files and adds the new ones – all settings are stored in the database, which isn’t touched by updating.

    That being said, always perform a database backup before updating anything – better safe than sorry.

    #69342
    Pete

    So do I just delete the current plugin and upload the new plugin?

    #69343
    Tom
    Lead Developer
    Lead Developer

    Do you not have automatic updates set up? Just need the email you purchased with added to the “Appearance > GeneratePress” area.

    But yea, if you want to do it manually you can just delete the old and upload the new – settings will still be in the database.

    Take a backup first though, just in case.

    #69388
    Pete

    What version of gp premium/hooks is the latest? I have version 1.0 and it’s not asking me to update (email verified) You mentioned elsewhere you’ve added some extra hooks for the archive.php but i can’t seem to find it?

    #69390
    Pete

    I can see the hook in the theme but not with GP hooks?

    #69407
    Tom
    Lead Developer
    Lead Developer

    That’s the latest version – not all hooks are included in GP Hooks, if I included them all it would become pretty bloated.

    I may add these in the new version, but you can always use your own code snippets:

    add_action( 'generate_before_archive_title','generate_custom_before_archive_title' );
    function generate_custom_before_archive_title() 
    { ?>
          This will go before the archive title
    <?php }
    #69410
    Pete

    Thanks, would you be able to update the hook list ?
    http://generatepress.com/knowledgebase/hook-list/

    #69528
    Tom
    Lead Developer
    Lead Developer

    Done πŸ™‚

    #69823
    Pete

    The complete list πŸ™‚

    
    	add_action( 'wp_head','wp_head1' );
    function wp_head1() 
    { ?>
          Your code goes here
    <?php }
    	
    	add_action( 'generate_before_header','generate_before_header1' );
    function generate_before_header1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_header_content','generate_before_header_content1' );
    function generate_before_header_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_header_content','generate_after_header_content1' );
    function generate_after_header_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_header','generate_after_header1' );
    function generate_after_header1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_inside_navigation','generate_inside_navigation1' );
    function generate_inside_navigation1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_inside_container','generate_inside_container1' );
    function generate_inside_container1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_main_content','generate_before_main_content1' );
    function generate_before_main_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_main_content','generate_after_main_content1' );
    function generate_after_main_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_content','generate_before_content1' );
    function generate_before_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_content','generate_after_content1' );
    function generate_after_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_entry_header','generate_after_entry_header1' );
    function generate_after_entry_header1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_entry_content','generate_after_entry_content1' );
    function generate_after_entry_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_archive_title','generate_before_archive_title1' );
    function generate_before_archive_title1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_archive_title','generate_after_archive_title1' );
    function generate_after_archive_title1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_archive_description','generate_after_archive_description1' );
    function generate_after_archive_description1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_paging_navigation','generate_paging_navigation1' );
    function generate_paging_navigation1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_right_sidebar_content','generate_before_right_sidebar_content1' );
    function generate_before_right_sidebar_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'ggenerate_after_right_sidebar_content','ggenerate_after_right_sidebar_content1' );
    function ggenerate_after_right_sidebar_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_left_sidebar_content','generate_before_left_sidebar_content1' );
    function generate_before_left_sidebar_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_left_sidebar_content','generate_after_left_sidebar_content1' );
    function generate_after_left_sidebar_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_footer','generate_before_footer1' );
    function generate_before_footer1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_footer_widgets','generate_after_footer_widgets1' );
    function generate_after_footer_widgets1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_before_footer_content','generate_before_footer_content1' );
    function generate_before_footer_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'generate_after_footer_content','generate_after_footer_content1' );
    function generate_after_footer_content1() 
    { ?>
          Your code goes here
    <?php }
    
    	add_action( 'wp_footer','wp_footer1' );
    function wp_footer1() 
    { ?>
          Your code goes here
    <?php }
    
    #69865
    Pete

    This is better…

    http://pastebin.com/jMjuUnN3

    #70007
    Tom
    Lead Developer
    Lead Developer

    Thanks for taking the time to do that! πŸ™‚

    #737278
    Pete

    resolved

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.