mazey-wordpress-utils
    Preparing search index...

    Function isIncludeInUrl

    • Check if the current URL includes a specified string.

      Example: https://example.com/home?example

      isIncludeInUrl({
      urlContainString: 'example'
      });

      Parameters

      • options: {} = {}

        Configuration with the URL substring to check.

      Returns boolean

      • Returns true if the URL contains the specified string, false otherwise.