Archived topic
How do I update my GP Premium hooks addon without deleting my data/settings?
12 replies · Started by Pete on January 27, 2015
How do I update my GP Premium addon without deleting my GP Hooks data/settings?
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.
So do I just delete the current plugin and upload the new plugin?
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.
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?
I can see the hook in the theme but not with GP hooks?
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 }
Thanks, would you be able to update the hook list ?
http://generatepress.com/knowledgebase/hook-list/
Done :)
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 }
This is better...
Thanks for taking the time to do that! :)
resolved