Action and Filter Reference The JS API uses a hook-system that is very similar to the WordPress PHP actions and filters. To learn more about hooking into those events,…
How To Determine Current Action Name and Priority We all know how to attach a custom callback function to a WordPress action.But what happens, when you have multiple actions run the same function?…
DiviAreaItem.applyFilters() Runs a JS filter via DiviArea.applyFilters() with the given hook name. This function will call two filters: One exactly as specified in the hook, and…
DiviAreaItem.doAction() Runs a JS action via DiviArea.doAction() with the given hook name. This function will call two hooks: One exactly as specified in the hook, and…
DiviArea.applyFilters() Applies all previously registered filter hooks and returns the filtered value. Params Returns Returns the filtered value. Notes No notes
applyFilters( “area_trigger_conditions” ) Allows to add custom Area conditions right before an Area is triggered
applyFilters( “area_general_conditions” ) Allows to add custom Area conditions right after the page loaded
applyFilters( “ignore_close_area” ) Allows to ignore the "close_area" request and force an area to stay open