Last active
June 6, 2020 22:08
-
-
Save maheshwaghmare/ee8065f474081962bc6ef1a7a20be10e to your computer and use it in GitHub Desktop.
Astra Portfolio - Delete the options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 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' ); | |
| // Delete old excluded sites. | |
| delete_option( 'astra_portfolio_batch_excluded_sites' ); | |
| delete_option( 'astra_portfolio_excludes' ); | |
| } | |
| add_action( 'admin_head', 'prefix_astra_portfolio_delete_options' ); | |
| endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment