PluginProbe
Faust.js / 0.7.1
Faust.js v0.7.1
1.8.12 1.8.11 1.4.1 1.8.0 1.8.8 1.8.9 trunk 0.7.0 0.7.1 0.7.10 0.7.11 0.7.3 0.7.4 0.7.5 0.7.6 0.7.7 0.7.8 0.7.9 0.8.0 0.8.1 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 All 40 releases
faustwp / includes / replacement / functions.php

functions.php in Faust.js 0.7.1, at includes/replacement/functions.php

33 lines 734 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Replacement functions.
4 *
5 * @package FaustWP
6 */
7
8 namespace WPE\FaustWP\Replacement;
9
10 use function WPE\FaustWP\Settings\is_rewrites_enabled;
11
12 if ( ! defined( 'ABSPATH' ) ) {
13 exit;
14 }
15
16 /**
17 * Determine if domain replacement can be done.
18 *
19 * Enabled if query string parameter 'replace-domain' is present.
20 *
21 * @return bool True if can proceed with replacement, false if else.
22 */
23 function domain_replacement_enabled() {
24 /**
25 * Filter 'faustwp_domain_replacement_enabled'.
26 *
27 * Used to override or extend if domain replacement is enabled.
28 *
29 * @param bool $enabled True if domain replacement is enabled, false if else.
30 */
31 return apply_filters( 'faustwp_domain_replacement_enabled', is_rewrites_enabled() );
32 }
33