Home » Docs » Hooks » Filters » Class: Conductor » conductor_is_conductor

Description

This filter is used to change the result of whether or not a Conductor content layout is enabled for the current piece of content.

This filter is executed when the Conductor::is_conductor() function is called.

Technical Details

  • Type: Filter
  • Parameters:
    • $is_conductor (Boolean): Whether (true) or not (false) a Conductor content layout is enabled for the current piece of content
    • $conductor_content_layout (array): Reference to the current content layout parameters
    • $conductor_options (array): Reference to all stored Conductor options
    • $ignore_default_layout (Boolean): Used to specify whether or not the default ("Disabled") content layout is ignored when validating content layouts for a piece of content
  • Return Value: Boolean, typically false unless a Conductor content layout is enabled for the current piece of content

Resources

Examples

The following example determines if a Conductor content layout is active for a custom post type named “test”. It can be used in conjunction with the examples on the conductor_content_layout and conductor_content_layout_data documentation pages.