Skip to content

mc_custom_dirs

github-actions[bot] edited this page May 15, 2026 · 4 revisions

Filter My Calendar's array of directories to check for custom files. Use to define where your custom templates and styles will be found.

Auto-generated Example

add_filter(
   'mc_custom_dirs',
    function(
        {array} $dirs,
        {string} $type
    ) {
        // Your code here.
        return $dirs;
    },
    10,
    2
);

Parameters

  • {array} $dirs Array of directory paths to check.
  • {string} $type Checking paths or URLs.

Returns

{array}

Files

apply_filters( 'mc_custom_dirs', $dirs, $type )

← All Hooks

Clone this wiki locally