register method

Top  Previous  Next

The register function allows rules to be added to the current screen rules array. If a parent rule is indicated in the second parameter, the rule will be added to the parent rule array, thus building a hierarchy.

 

Call Parameters

 

Parameter name

Explanation

rule

A rule to be added to the screen rules array.

parentRule

If defined, the new rule will be added as an element to the parentRule' rules array, rather than to then screen rules array.

In any case, along every rule parent-child relationship, there is a higher level parentRule that belongs to the screen rules array.

 

Return Object

 

This function does not return any object.