add_filter or apply_filter General Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

Please consider registering
guest

Log In

Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
add_filter or apply_filter
October 13, 2009
6:34 am
jack_mn
New Member
Forum Posts: 4
Member Since:
October 13, 2009
Offline

Hello,

Can anyone please explain the difference between the 2?

I know that add_filter add a filter function to a WordPress core function (hook),

but when should I use the apply_filter?

Thanks in advance,

Jack

November 2, 2009
4:32 am
daisy7386
New Member
Forum Posts: 1
Member Since:
November 2, 2009
Offline

The callback functions attached to filter hook $tag are invoked by calling this function. This function can be used to create a new filter hook by simply calling this function with the name of the new hook specified using the $tag parameter.

———————————

(commercial spam link removed)

November 3, 2009
10:39 am
jack_mn
New Member
Forum Posts: 4
Member Since:
October 13, 2009
Offline

Can you please give an example of a common situation in which I should use apply_filter? maybe this will be more clear to me

November 3, 2009
11:24 am
hallsofmontezuma
Admin
Forum Posts: 202
Member Since:
June 8, 2009
Offline

You must be a subscriber to view administrator posts. Click here to purchase a support subscription.

For what shall it profit a man, if he shall gain the whole world, and lose his own soul?
November 4, 2009
1:48 pm
jack_mn
New Member
Forum Posts: 4
Member Since:
October 13, 2009
Offline

So if I understand correctly, "apply_filter" is actually a hook created within a filter function, to enable other filters to connect to?

April 22, 2010
3:47 am
Adamshefard
New Member
Forum Posts: 3
Member Since:
April 13, 2010
Offline

Thanks for taking the time out to share this with the world. I really appreciate this. Keep doing what you're doing.
3D Architectural Animation Services

July 29, 2010
3:40 am
jimsmithusa12
New Member
Forum Posts: 1
Member Since:
July 29, 2010
Offline

Jimsmithusa12 : Can anyone please explain the difference between the two terms?

I know that add_filter add a filter function to a WordPress core function (hook),but when should I use the apply_filter? how can we use this keyword in coding. please reply.
—————-
Want to get-on Google's first page and loads of traffic to your website?
Hire a SEO Specialist from Ocean Groups seo specialist

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online: onrichensprest
24 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

romiojuliat: 102

yaoming987: 50

jintuy: 50

miki1986: 33

newshow: 28

karen1234: 27

Member Stats:

Guest Posters: 0

Members: 6356

Moderators: 3

Admins: 4

Forum Stats:

Groups: 5

Forums: 23

Topics: 1546

Posts: 3450

Newest Members: carofern@cisco.com, pronto, jessie, pbaylies, ninaeast, freda

Moderators: davecashmore (2), aaron (5), tempadmin (0)

Administrators: WordPress Professional (442), hallsofmontezuma (202), onefinejay (10), stevemortiboy (4)