Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /**
  2. * Delete the options
  3. *
  4. * @todo Change the `prefix_` and with your own unique prefix.
  5. *
  6. * @since 1.0.0
  7. */
  8. if( ! function_exists( 'prefix_astra_portfolio_delete_options' ) ) :
  9. function prefix_astra_portfolio_delete_options() {
  10. delete_option( 'astra-portfolio-batch-process' );
  11. delete_option( 'astra_portfolio_total_requests' );
  12. delete_option( 'astra_portfolio_site_page_1' );
  13. delete_option( 'astra_portfolio_site_page_2' );
  14. delete_option( 'astra_portfolio_site_page_3' );
  15. delete_option( 'astra-portfolio-site-import-count' );
  16. delete_option( 'astra-portfolio-image-import-count' );
  17. delete_option( 'astra-portfolio-batch-process-string' );
  18. delete_option( 'astra-portfolio-batch-process-all-complete' );
  19. }
  20. add_action( 'admin_head', 'prefix_astra_portfolio_delete_options' );
  21. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement