settings
4 years ago
globals.php
9 years ago
import-export.php
4 years ago
notices.php
4 years ago
welcome.php
4 years ago
globals.php
22 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Add values to global variables |
| 4 | * |
| 5 | * |
| 6 | * @copyright Copyright (c) 2017, Jeffrey Carandang |
| 7 | * @since 3.3.1 |
| 8 | */ |
| 9 | |
| 10 | if( !function_exists( 'widgetopts_register_globals' ) ){ |
| 11 | add_action( 'init', 'widgetopts_register_globals', 90 ); |
| 12 | function widgetopts_register_globals(){ |
| 13 | global $widgetopts_taxonomies, $widgetopts_types, $widgetopts_categories; |
| 14 | |
| 15 | $widgetopts_taxonomies = widgetopts_global_taxonomies(); |
| 16 | $widgetopts_types = widgetopts_global_types(); |
| 17 | $widgetopts_categories = widgetopts_global_categories(); |
| 18 | |
| 19 | } |
| 20 | } |
| 21 | ?> |
| 22 |