ProcessPageSearch::setForSelector()
Set a selector to use when $_GET['for_selector_name'] matches given $name
This is for cases where you don't want the selector to pass through user input, and you instead just want to pass the name of it via user input. This enables use of some features that may not be available through user selectors passing only through user input.
Used in executeFor() mode only.
Available since version 3.0.223.
Usage
// basic usage
$string = $processPageSearch->setForSelector(string $name, string $selector);
// usage with all arguments
$string = $processPageSearch->setForSelector(string $name, string $selector, array $data = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$name | string | |
$selector | string | |
$data (optional) | array | Optional associative array of extra data to set 3.0.238+ |
Return value
string
Returns URL needed to use this selector
ProcessPageSearch methods and properties
API reference based on ProcessWire core version 3.0.251