105 reputation
5
bio website jackmahoney.co.nz
location NZL
age 24
visits member for 2 years, 6 months
seen Aug 8 '13 at 1:46

Aug
14
awarded  Popular Question
Jul
29
awarded  Supporter
May
9
revised Extending core class in plugin
found solution
May
9
comment Extending core class in plugin
Thanks for all the help guys - I found a solution. Turns out core was including the file at certain times only, so instead of declaring it in my plugin file I simply moved the extending class to a separate file and called an include on that file when needed - knowing that the parent class would be included at that time. Thanks for the help and I'll release the code open-source soon. Cheers!
May
9
accepted Extending core class in plugin
May
9
awarded  Editor
May
9
comment Extending core class in plugin
Okay thanks I appreciate the help anyway, I may post my code direct if needed
May
9
comment Extending core class in plugin
Dude can you not understand my situation, I am working on a cool new feature to do with beta files in the Wordpress Core and I want it to be a surprise - so posting my work in raw form would reveal to everyone. Its a great feature that will go open source but I wish to be the first to achieve it - is that so bad?
May
9
revised Extending core class in plugin
added more code
May
9
comment Extending core class in plugin
Sorry I wasn't offended just trying to highlight the problem.
May
9
comment Extending core class in plugin
Thanks but my knowledge of extending classes in PHP is fine. Say the class name in the include folder is WP_Foo_Helper then my class would look like class My_Class extends WP_Foo_Helper{} because I am assuming the class has been loaded. My problem is that I'm getting no class found errors and then when I include the file containing the class I get a cannot redeclare class error
May
9
comment Extending core class in plugin
Thats just an example fake class - I am extending a real class but I don't want to name it until I have finished the project - it is an open source project but I still wish to retain an element of surprise.
May
9
asked Extending core class in plugin
Mar
21
awarded  Tumbleweed
Mar
14
comment Allow access to stand-alone php file Wordpress
Thanks for that I'll read up more on admin-ajax.php
Mar
12
awarded  Scholar
Mar
12
accepted Allow access to stand-alone php file Wordpress
Mar
12
asked Allow access to stand-alone php file Wordpress