Skip to content

mc_file_exists

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter test for whether a file exists. Return true to confirm file exists.

Auto-generated Example

add_filter(
   'mc_file_exists',
    function(
        bool $path,
        string $file
    ) {
        // Your code here.
        return $path;
    },
    10,
    2
);

Parameters

  • bool $path File path.
  • string $file File name.

Returns

bool

Files

apply_filters( 'mc_file_exists', false, $file )

← All Hooks

Clone this wiki locally