nf_clear_old_favs
Clearing out the old email favourite field and replacing it with the new version.
Description
nf_clear_old_favs();
Usage
if ( !function_exists( 'nf_clear_old_favs' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/upgrades/upgrade-functions.php'; } // NOTICE! Understand what this does before running. $result = nf_clear_old_favs();
Defined (1)
The function is defined in the following location(s).
- /deprecated/includes/admin/upgrades/upgrade-functions.php
- function nf_clear_old_favs() {
- global $wpdb;
- $email_fav_updated = get_option( 'nf_email_fav_updated', false );
- if ( $email_fav_updated )
- return false;
- update_option( 'nf_email_fav_updated', true );
- }