Skip to main content

Filter: gravityview_custom_entry_slug_allow_id

When using a custom slug, allow access to the entry using the original slug (the Entry ID).

  • If disabled (default), only allow access to an entry using the custom slug value. (example: /entry/custom-slug/ NOT /entry/123/) - If enabled, you could access using the custom slug OR the entry id (example: /entry/custom-slug/ OR /entry/123/)

Parameters

NameTypeDescription
$custom_slug_id_accessboolTrue: allow accessing the slug by ID; False: only use the slug passed to the method.

Since

Source

Defined in includes/class-common.php at line 874