PluginProbe
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP / 1.2.68
UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP v1.2.68
1.2.74 1.2.73 1.2.72 1.2.71 1.2.70 1.2.69 1.2.68 1.2.67 1.2.66 1.2.65 1.2.64 1.2.63 trunk 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.20 1.0.21 All 174 releases
userswp / vendor / ayecode / wp-ayecode-ui / ayecode-ui-loader.php

ayecode-ui-loader.php in UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP 1.2.68, at vendor/ayecode/wp-ayecode-ui/ayecode-ui-loader.php

47 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * This is a file takes advantage of anonymous functions to to load the latest version of the AyeCode UI Settings.
4 */
5
6 /**
7 * Bail if we are not in WP.
8 */
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * Set the version only if its the current newest while loading.
15 */
16 add_action('after_setup_theme', function () {
17 global $ayecode_ui_version,$ayecode_ui_file_key;
18 $this_version = "0.2.51";
19 if(empty($ayecode_ui_version) || version_compare($this_version , $ayecode_ui_version, '>')){
20 $ayecode_ui_version = $this_version ;
21 $ayecode_ui_file_key = wp_hash( __FILE__ );
22 }
23 },0);
24
25 /**
26 * Load this version of WP Bootstrap Settings only if the file hash is the current one.
27 */
28 add_action('after_setup_theme', function () {
29 global $ayecode_ui_file_key;
30 if($ayecode_ui_file_key && $ayecode_ui_file_key == wp_hash( __FILE__ )){
31 include_once( dirname( __FILE__ ) . '/includes/class-aui.php' );
32 include_once( dirname( __FILE__ ) . '/includes/ayecode-ui-settings.php' );
33 }
34 },1);
35
36 /**
37 * Add the function that calls the class.
38 */
39 if(!function_exists('aui')){
40 function aui(){
41 if(!class_exists("AUI",false)){
42 return false;
43 }
44 return AUI::instance();
45 }
46 }
47