assets
5 years ago
bin
5 years ago
languages
5 years ago
lib
5 years ago
templates
5 years ago
.jshintrc
6 years ago
Gruntfile.js
5 years ago
init.php
5 years ago
package.json
5 years ago
yit-deactive-plugin.php
9 years ago
yit-functions.php
5 years ago
yit-plugin-registration-hook.php
8 years ago
yit-plugin.php
5 years ago
yit-woocommerce-compatibility.php
8 years ago
yit-plugin-registration-hook.php
24 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This file belongs to the YIT Plugin Framework. |
| 4 | * |
| 5 | * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) |
| 6 | * that is bundled with this package in the file LICENSE.txt. |
| 7 | * It is also available through the world-wide-web at this URL: |
| 8 | * http://www.gnu.org/licenses/gpl-3.0.txt |
| 9 | */ |
| 10 | |
| 11 | if( ! function_exists( 'yith_plugin_registration_hook' ) ){ |
| 12 | function yith_plugin_registration_hook(){ |
| 13 | |
| 14 | /** |
| 15 | * @use activate_PLUGINNAME hook |
| 16 | */ |
| 17 | $hook = str_replace( 'activate_', '', current_filter() ); |
| 18 | |
| 19 | $option = get_option( 'yit_recently_activated', array() ); |
| 20 | $option[] = $hook; |
| 21 | update_option( 'yit_recently_activated', $option ); |
| 22 | } |
| 23 | } |
| 24 |