element-pack.php
13 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Remove license notices for elementor pack |
| 4 | * |
| 5 | * @return void |
| 6 | */ |
| 7 | function auxin_compatibility_element_pack_remove_license_notice(){ |
| 8 | update_user_meta( get_current_user_id(), 'element-pack-notice-id-license-issue', true ); |
| 9 | set_transient( 'element-pack-notice-id-license-issue', true, YEAR_IN_SECONDS ); |
| 10 | } |
| 11 | |
| 12 | add_action( 'auxin_plugin_updated', 'auxin_compatibility_element_pack_remove_license_notice'); |
| 13 |