public add_rule ( mixed $rule, string $hook, Callback $fn = null ) | ||
$rule | mixed | An old-style rewrite rule string, where quoted segments are literals and unquoted segments are variable names, OR a RewriteRule object |
$hook | string | The suffix of the hook function: action_plugin_act_{$suffix} |
$fn | Callback | A potential function/method to register directly to the newly created hook |