element-pack.php
26 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 | |
| 14 | /** |
| 15 | * bypass element pack license activation process for our clients |
| 16 | * |
| 17 | * @return true|void |
| 18 | */ |
| 19 | function auxin_activate_element_pack_license() { |
| 20 | if ( ! function_exists( 'element_pack_pro_activated' ) ) { |
| 21 | function element_pack_pro_activated() { |
| 22 | return true; |
| 23 | } |
| 24 | } |
| 25 | } |
| 26 | add_action( 'plugins_loaded', 'auxin_activate_element_pack_license', 8); |