Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

SCPT_PLUGIN_URL if being used within a theme #43

Closed
wants to merge 1 commit into from
Closed

SCPT_PLUGIN_URL if being used within a theme #43

wants to merge 1 commit into from

Conversation

davegaeddert
Copy link

Fixes #42.

I had the same problem as @sunny04, I'd like to use super-cpt from within my theme and not install the plugin. This defines SCPT_PLUGIN_URL accordingly. Any particular reason that super-cpt should not be used this way? And should instead be installed via the plugin?

@louy
Copy link

louy commented Apr 22, 2015

If you are planning to use it in your theme, you can do the following:

define( 'SCPT_PLUGIN_URL', get_template_directory_uri() . '/super-cpt/' );

However, I do not favor this approach as it prevents the plugin from being updated.

@ymladenov
Copy link

This seems pretty neat.
http://tgmpluginactivation.com/
Haven't tested it on my own code yet.
Seems to make plugins super easy to maintain - paste your plugin archive in your theme's folder, call it from a function that uses a hook created by this library.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Embedding SuperCPT in a theme creates 403 error for the css and js files
3 participants