PHP code example of leymannx / wordpress-project
1. Go to this page and download the library: Download leymannx/wordpress-project library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
leymannx / wordpress-project example snippets
/*
Plugin Name: Custom CFM config directory
Description: Override default CFM config location.
Version: 1.0
*/
// Override wp-cfm configuration directory.
add_filter('wpcfm_config_dir', function () {
return dirname($_SERVER['DOCUMENT_ROOT']) . '/wp-config/cfm';
});
add_filter('wpcfm_config_url', function () {
return dirname($_SERVER['DOCUMENT_ROOT']) . '/wp-config/cfm';
});