Function getDataFromFile

  • Reads a PHP file, extracts, and returns the WordPress version number.

    Parameters

    • fileContent: string

      Path to the PHP file to read

    • variableName: string = 'wp_version'

      The name of the variable to search adn replace

    Returns string | null

    WordPress version number or null if not found or in case of an error

Generated using TypeDoc