Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya
Created January 4, 2017 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hellofromtonya/64f21cc6622994be96d4c2892c282f4f to your computer and use it in GitHub Desktop.
Save hellofromtonya/64f21cc6622994be96d4c2892c282f4f to your computer and use it in GitHub Desktop.
Constants for Collapsible Content Plugin
define( 'COLLAPSIBLE_CONTENT_PLUGIN', __FILE__ );
define( 'COLLAPSIBLE_CONTENT_DIR', plugin_dir_path( __FILE__ ) );
$plugin_url = plugin_dir_url( __FILE__ );
if ( is_ssl() ) {
$plugin_url = str_replace( 'http://', 'https://', $plugin_url );
}
define( 'COLLAPSIBLE_CONTENT_URL', $plugin_url );
define( 'COLLAPSIBLE_CONTENT_TEXT_DOMAIN', 'collapsible_content' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment