PluginProbe
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI / 8.0.5
GamiPress – Gamification plugin to reward points, badges & ranks in WordPress, now with AI v8.0.5
8.0.5 8.0.4 8.0.3 8.0.1 8.0.2 8.0.0 7.9.9.7 7.9.9.6 7.9.9.5 7.9.9.4 7.9.9.3 7.9.9.2 7.9.9.1 7.9.9 7.9.8 7.9.7 7.9.6 7.9.5 7.9.4 7.9.3 7.9.2 7.9.1 7.9.0 7.8.9 7.8.8 All 47 releases
← All changes | includes/admin/settings/network.php +37 -0 7.8.9 → 8.0.5 View file →
@@ -1,0 +1,37 @@
1 +<?php
2 +/**
3 + * Admin Style Settings
4 + *
5 + * @package GamiPress\Admin\Settings\Style
6 + * @author GamiPress <[email protected]>, Ruben Garcia <[email protected]>
7 + * @since 1.3.7
8 + */
9 +// Exit if accessed directly
10 +if( !defined( 'ABSPATH' ) ) exit;
11 +
12 +/**
13 + * Network Settings meta boxes
14 + *
15 + * @since 1.0.0
16 + *
17 + * @param array $meta_boxes
18 + *
19 + * @return array
20 + */
21 +function gamipress_settings_network_meta_boxes( $meta_boxes ) {
22 +
23 + $meta_boxes['network-settings'] = array(
24 + 'title' => gamipress_dashicon( 'admin-multisite' ) . __( 'Network Settings', 'gamipress' ),
25 + 'fields' => apply_filters( 'gamipress_network_settings_fields', array(
26 + 'ms_show_all_achievements' => array(
27 + 'name' => __( 'Show achievements earned across all sites on the network', 'gamipress' ),
28 + 'type' => 'checkbox',
29 + 'classes' => 'gamipress-switch',
30 + )
31 + ) )
32 + );
33 +
34 + return $meta_boxes;
35 +
36 +}
37 +add_filter( 'gamipress_settings_network_meta_boxes', 'gamipress_settings_network_meta_boxes' );