File Editor
Directories:
.. (Back)
RestApi
upgrades
Files:
Admin.php
Data.php
LoginRedirect.php
base.php
jetpack.php
partners.php
plugin-nfd-compat-check.php
plugin-php-compat-check.php
settings.php
updates.php
Create New File
Create
Edit File: settings.php
<?php /** * Functionality related to Settings * see RestApi/SettingsController.php for implementation * * @package HostGatorWordPressPlugin */ namespace HostGator; /** * Filter wp revisions according to plugin setting * * @param int $num Number of posts to retain (unused). * @param WP_Post|object $post Post object (unused). * @return int */ function nfd_settings_revisions( $num, $post ) { return get_option( 'nfd_wp_post_revisions', 5 ); } add_filter( 'wp_revisions_to_keep', __NAMESPACE__ . '\\nfd_settings_revisions', 10, 2 ); if ( ! defined( 'EMPTY_TRASH_DAYS' ) ) { $nfd_empty_trash_days = get_option( 'nfd_empty_trash_days', 30 ); define( 'EMPTY_TRASH_DAYS', $nfd_empty_trash_days ); }
Save Changes
Rename File
Rename