[Xerte-dev] Re: WordPress Event structure

Smith, John J.J.Smith at gcu.ac.uk
Tue Apr 16 09:53:27 BST 2013


Yes, take a look at index.php where most of the filter hooks I've added exist

Line 136 : apply_filters('page_title', INDEX_WORKSPACE_TITLE);

And in plugins.php, at the bottom, there are some helper functions wrapping the do_actions

do_action("head_start");

These names are not defined anywhere yet but if they matchup with a function in the plugins folder then they will fire...

Actions are of limited value just now but if you passed in an array of names and functions, such as for property page then you could remove or augment if desired... Or do string manipulations...

Regards

John Smith
Learning Technologist
School of Health and Life Sciences

Sent from Samsung Galaxy SII



"Pat @ Pgogy" <xerte at pgogywebstuff.com> wrote:


Hello,

How do I add new events for people to add hooks and filters too?

Same was as WordPress?

Thanks

Pat


Pgogy Webstuff - http://www.pgogywebstuff.com
Makers of web things of a fair to middling quality

_______________________________________________
Xerte-dev mailing list
Xerte-dev at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.

Glasgow Caledonian University is a registered Scottish charity, number SC021474

Winner: Times Higher Education's Widening Participation Initiative of the Year 2009 and Herald Society's Education Initiative of the Year 2009.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,6219,en.html

Winner: Times Higher Education's Outstanding Support for Early Career Researchers of the Year 2010, GCU as a lead with Universities Scotland partners.
http://www.gcu.ac.uk/newsevents/news/bycategory/theuniversity/1/name,15691,en.html



More information about the Xerte-dev mailing list