• Is there a way to change the path for the push?

    I see this:
    define( ‘WPCFM_CONFIG_DIR’, apply_filters( ‘wpcfm_config_dir’, WP_CONTENT_DIR . ‘/config’ ) );

    And I want to change the directory to somewhere else without modifying the plugin directly. Is there some way to write my own plugin that overrides this value?

Viewing 1 replies (of 1 total)
  • Hi @mdw15,
    You can definitely write your own plugin to filter the directory using wpcfm_config_dir. Here is an example:

    `
    <?php
    /*
    Plugin Name: Alter-wpcfm-config-path
    Description: Alters the wpcfm config path
    Version: 0.1
    */
    // Tell wp-cfm where our config files live
    add_filter(‘wpcfm_config_dir’, function($var) { return $_SERVER[‘DOCUMENT_ROOT’] . ‘/private/config’; });
    add_filter(‘wpcfm_config_url’, function($var) { return WP_HOME . ‘/private/config’; });
    `

Viewing 1 replies (of 1 total)
  • The topic ‘Change config path for features’ is closed to new replies.