# faustwp/0.7.1/includes/replacement/functions.php

Faust.js, version 0.7.1. 33 lines.

- Page: https://pluginprobe.com/plugins/faustwp/0.7.1/code/includes/replacement/functions.php
- Raw: https://pluginprobe.com/plugins/faustwp/0.7.1/raw/includes/replacement/functions.php
- Modified: 2021-12-02T16:40:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/faustwp/0.7.1/code/includes/replacement/functions.php#L10-L20`.

```php
<?php
/**
 * Replacement functions.
 *
 * @package FaustWP
 */

namespace WPE\FaustWP\Replacement;

use function WPE\FaustWP\Settings\is_rewrites_enabled;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Determine if domain replacement can be done.
 *
 * Enabled if query string parameter 'replace-domain' is present.
 *
 * @return bool True if can proceed with replacement, false if else.
 */
function domain_replacement_enabled() {
	/**
	 * Filter 'faustwp_domain_replacement_enabled'.
	 *
	 * Used to override or extend if domain replacement is enabled.
	 *
	 * @param bool $enabled True if domain replacement is enabled, false if else.
	 */
	return apply_filters( 'faustwp_domain_replacement_enabled', is_rewrites_enabled() );
}

```
