editable_extensions

editable_extensions

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.6.2

apply_filters('editable_extensions') is found 1 times:

  • /wp-admin/includes/file.php line 238
    	 *
    	 * @param string[] $default_types An array of editable plugin file extensions.
    	 * @param string   $plugin        Path to the plugin file relative to the plugins directory.
    	 */
    	$file_types = (array) apply_filters( 'editable_extensions', $default_types, $plugin );
    
    	return $file_types;
    }
    
    /**
     * Gets the list of file extensions that are editable for a given theme.