PluginProbe
WP Coder – Insert & Manage Code Snippets / trunk
WP Coder – Insert & Manage Code Snippets vtrunk
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / classes / Snippets / pages / core.php

core.php in WP Coder – Insert & Manage Code Snippets trunk, at classes/Snippets/pages/core.php

70 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined( 'ABSPATH' ) || exit;
4
5 ?>
6
7 <div class="wowp-snippets__header">
8 <h3 class="wowp-snippets__header-title">Core Functionality</h3>
9 <p class="wowp-snippets__header-description">Control WordPress system behaviors.</p>
10 </div>
11
12 <?php
13
14 $snippets = [
15 'disable_XML_RPC' => [
16 'Disable XML-RPC',
17 'Fully disable XML-RPC functionality.',
18 ],
19 'disable_rest_api' => [
20 'Disable WordPress REST API',
21 'Prevent public access to the REST API.',
22 ],
23 'disable_automatic_updates' => [
24 'Disable Automatic Updates',
25 'Turn off all WordPress core updates.',
26 ],
27 'disable_automatic_updates_emails' => [
28 'Disable Automatic Updates Emails',
29 'Stop email notifications for auto-updates.',
30 ],
31 'disable_emojis' => [
32 'Disable Emojis',
33 'Prevent WordPress from loading emoji scripts.',
34 ],
35
36 'disable_wp_shortlink' => [
37 'Disable WordPress Shortlink',
38 'Remove shortlink meta tag from site head.',
39 ],
40
41
42 ];
43
44 self::create_options( $snippets );
45
46 ?>
47
48 <div class="wowp-snippet__item">
49 <div class="wowp-snippet__item-header">
50 <label for="change_revisions_control">Change Number of Post Revisions</label>
51 <p class="wowp-snippet__item-description">Limit the number of stored revisions per post.</p>
52 </div>
53 <div class="wowp-field has-checkbox">
54 <label class="switch">
55 <?php self::field( 'checkbox', 'change_revisions_control' ); ?>
56 <span class="slider"></span>
57 </label>
58 </div>
59 <div class="wowp-snippet__item-expand is-hidden">
60 <div class="wowp-field">
61 <label>
62 <span class="label">Number of revisions</span>
63 <?php self::field( 'number', 'change_revisions_control_number', 10 ); ?>
64 </label>
65 </div>
66 </div>
67 </div>
68
69 <?php
70