This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
plugins:tips [2014/02/07 10:04] datiswous [Determining the GetSimple Version] |
plugins:tips [2014/02/07 10:05] datiswous [Working around the Lack of a Page-Delete Hook in 2.03] |
||
---|---|---|---|
Line 22: | Line 22: | ||
To trigger a function myplugin_function on page deletes in GetSimple 2.03 and 3.0+ use the following code: | To trigger a function myplugin_function on page deletes in GetSimple 2.03 and 3.0+ use the following code: | ||
- | <code> | + | <code php> |
// GetSimple 3.0+ | // GetSimple 3.0+ | ||
add_action('page-delete', 'myplugin_function'); | add_action('page-delete', 'myplugin_function'); |