This is at least the second time you come here to post about the same topic, please don't do duplicate posts.
Seems like still don't undestand how it works:
api-events_catch_status() {
if [[ $1 == "si2" ]]; then
echo "[MESAGGE] WordPress will be installed!"
fi
}
That's the most clear example I can give you.
Regards.