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

no dash in the instance name #81

Open
zetoun17 opened this issue May 20, 2013 · 1 comment
Open

no dash in the instance name #81

zetoun17 opened this issue May 20, 2013 · 1 comment

Comments

@zetoun17
Copy link

juste a tip :never use the dash '-' in the instance name !
it will be saved a and underscore '_' .

eg :
$attachments = new Attachments( 'my-att' );
// will be saved as 'my_att' in the post meta

@jchristopher
Copy link
Owner

Yes you are correct, this is a result of the name eventually making it's way to being an object property, and the syntax for retrieving that isn't familiar to everyone. I'm going to leave this Issue open for the time being, however, because I think this can be thought out a bit more...

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

2 participants