Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
add_filter??
#5
mvlcek Wrote:
eru321 Wrote:Thanks for the answer. I'll try to be more clear.
For example, the mp3 plugin.
I write (% mysong.mp3 %) in the page where i want to insert the player.

I would do the same thing with my plugin.

Use add_filter to specify a function in your plugin as content filter.
In this function use a regular expression to find the (% ... %), which belongs to your plugin and replace it with the desired text.

THANKSSSSSSSSS A LOT!
It Works.
Really really thanks.
Reply


Messages In This Thread
add_filter?? - by eru321 - 2011-06-28, 09:52:09
add_filter?? - by Connie - 2011-06-28, 16:09:41
add_filter?? - by eru321 - 2011-06-28, 16:56:51
add_filter?? - by mvlcek - 2011-06-28, 17:05:20
add_filter?? - by eru321 - 2011-06-29, 18:40:04



Users browsing this thread: 1 Guest(s)