Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin as standalone #32

Open
Robilyn opened this issue Aug 31, 2016 · 4 comments
Open

The plugin as standalone #32

Robilyn opened this issue Aug 31, 2016 · 4 comments

Comments

@Robilyn
Copy link

Robilyn commented Aug 31, 2016

Hello!

Firstly, I wanna thank you for the plug-in.

I am using cmb2 not as a plug-in.

in my function.php

require_once ('inc/cmb2/init.php');
require_once ('inc/Cmb2Grid/Cmb2GridPlugin.php');

How can I incoporate your plug-in in my Theme without installing it.

Greetings Rob!

@vilsongabriel
Copy link

In Cmb2GridPluginLoad.php

Find:
add_action( 'plugins_loaded', '\\' . __NAMESPACE__ . '\init' );

Replace:
add_action( 'init', '\\' . __NAMESPACE__ . '\init' );

@Robilyn
Copy link
Author

Robilyn commented Sep 21, 2016

Wow it's magic. Thank you!
LG Rob.

@proweb
Copy link

proweb commented Nov 16, 2016

thanks for answer, also thinking about it

@pgroot91
Copy link

Thanks for this! 👍

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

No branches or pull requests

4 participants