Home » Docs » Functions » Class: Conductor » Conductor::plugin_dir()

Description

This function is a helper function which returns the plugin directory for Conductor without a trailing slash (i.e. /var/www/example.com/htdocs/wordpress/wp-content/plugins/conductor). It can be used in require(), require_once(), include(), and include_once() to load assets (i.e. the Conductor Widget) provided by Conductor.

Technical Details

  • Type: Function
  • Parameters: None
  • Return Value: string

Resources

Examples

The following example demonstrates how to include the Conductor Options Sidebar template. This particular example is useful if you’re creating a Conductor Admin (Dashboard) page.