User Tools

Site Tools


plugins:tips

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next 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 [Success and Error Messages]
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'​); ​
Line 37: Line 37:
 Assume you have 3 variables, ''​$isSuccess'',​ ''​$canUndo''​ and ''​$msg''​ holding the message. To display the message for your plugin ''​myplugin'',​ add the following code to your plugin: Assume you have 3 variables, ''​$isSuccess'',​ ''​$canUndo''​ and ''​$msg''​ holding the message. To display the message for your plugin ''​myplugin'',​ add the following code to your plugin:
  
-<​code>​+<​code ​php>
 <?​php ​ <?​php ​
   if (isset($msg)) {   if (isset($msg)) {
plugins/tips.txt ยท Last modified: 2014/02/07 10:07 by datiswous