Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Delete the options
- *
- * @todo Change the `prefix_` and with your own unique prefix.
- *
- * @since 1.0.0
- */
- if( ! function_exists( 'prefix_astra_portfolio_delete_options' ) ) :
- function prefix_astra_portfolio_delete_options() {
- delete_option( 'astra-portfolio-batch-process' );
- delete_option( 'astra_portfolio_total_requests' );
- delete_option( 'astra_portfolio_site_page_1' );
- delete_option( 'astra_portfolio_site_page_2' );
- delete_option( 'astra_portfolio_site_page_3' );
- delete_option( 'astra-portfolio-site-import-count' );
- delete_option( 'astra-portfolio-image-import-count' );
- delete_option( 'astra-portfolio-batch-process-string' );
- delete_option( 'astra-portfolio-batch-process-all-complete' );
- }
- add_action( 'admin_head', 'prefix_astra_portfolio_delete_options' );
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement