To use the pipelines of SPIP or of a plugin, their usage must be explicitly defined in the plugin.xml
file:
<pipeline>
<nom>name_of_the_pipeline</nom>
<action>name of the function to load</action>
<inclure>directory/file.php</inclure>
</pipeline>
The action
parameter is optional, and by default, it has the same name as the pipeline. This declaration indicates a particular file to load when calling the pipeline (determined by the inclure
) and loading a function like pluginprefix_action()
. Note that the action
parameter is only rarely provided.
Several pipelines can be specified by listing them as demonstrated below:
<pipeline>
<nom>name_of_the_pipeline</nom>
<inclure>directory/file.php</inclure>
</pipeline>
<pipeline>
<nom>another_name</nom>
<inclure>directory/file.php</inclure>
</pipeline>