acf_pro_delete_license_option()
Deletes a multisite compatible licensing data value For multisite installs, this is from the main site options if available or the normal option otherwise.
No Hooks.
Returns
boolean. The result of the deletion request.
Usage
acf_pro_delete_license_option( $option_name );
- $option_name(string) (required)
- The option name to load.
Changelog
| Since 6.2.6 | Introduced. |
acf_pro_delete_license_option() acf pro delete license option code ACF 6.8.8
function acf_pro_delete_license_option( $option_name ) {
if ( acf_pro_is_legacy_multisite() && acf_is_multisite_sub_site() ) {
return delete_blog_option( get_main_site_id(), $option_name );
}
return delete_option( $option_name );
}