BP_Admin_Setting_General

主要通用设置类。

描述

文件:bp-core /管理/设置/ bp-admin-setting-general.php

class BP_Admin_Setting_General extends BP_Admin_Setting_tab {public function initialize() {$this->tab_label = __('General', 'buddyboss');$ this - > tab_name =“bp-general”;$ this - > tab_order = 0;} public function register_fields() {$this->add_section('bp_main', __('General Settings', 'buddyboss'));$this->add_field('bp-enable-site-registration', __('Registrations', 'buddyboss'), 'bp_admin_setting_callback_register', 'intval');$this->add_field('bp-disable-account-deletion', __('Account Deletion', 'buddyboss'), 'bp_admin_setting_callback_account_deletion', 'intval'); / /删除账户数组$ args = ();args(类的)美元=“child-no-padding-first”;$this->add_field('show-login-adminbar', __('Toolbar', 'buddyboss'), 'bp_admin_setting_callback_login_admin_bar', 'intval', $args);数组$ args = (); $args['class'] = 'child-no-padding'; $this->add_field( 'hide-loggedout-adminbar','', 'bp_admin_setting_callback_admin_bar', 'intval', $args ); $args = array(); $this->add_field( 'bp-admin-setting-tutorial','', 'bp_admin_setting_tutorial' ); $this->add_section( 'bp_privacy', __( 'Privacy', 'buddyboss' ) ); $this->add_field( 'bp-enable-private-network', __( 'Private Network', 'buddyboss' ), 'bp_admin_setting_callback_private_network', 'intval' ); $enable_private_network = bp_get_option( 'bp-enable-private-network' ); if ( '0' === $enable_private_network ) { $this->add_field( 'bp-enable-private-network-public-content',__( 'Public Content', 'buddyboss' ),'bp_admin_setting_callback_private_network_public_content' ); } $this->add_field( 'bp-privacy-tutorial','', 'bp_privacy_tutorial' ); } }

更新日志

更新日志
版本 描述
BuddyBoss 1.0.0 介绍了。

方法

问题吗?

我们总是很乐意帮助您解决代码或其他问题!搜索我们的开发人员文档联络支持,或与我们联系销售团队