| 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 |
|