Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (14 April 2014 - 05:28 PM) By The Way, This Could Be An Interesting Subject For A Topic, What About Posting This Question? Let's See If Other People Have The Same Feeling Concerning Bootlists!
@  yordan : (13 April 2014 - 09:36 AM) Boot Order : Cd, [Usb,] Hard Drive :D
@  yordan : (11 April 2014 - 07:23 PM) I Simply Let The Bios Do That
@  Ritesh : (11 April 2014 - 10:23 AM) Is It Possible To Launch Fedora Live Cd Or Installation Disk From Hard Drive On Windows Platform Using Grub Mbr File.
@  Ritesh : (11 April 2014 - 10:21 AM) No U Are Not.. Btw.. I Have Question For You.
@  yordan : (10 April 2014 - 08:02 AM) You Are Partially Right.
I Was Not.
Nevertheless, I Am Again :)
@  Ritesh : (09 April 2014 - 07:33 PM) :P
@  Ritesh : (09 April 2014 - 07:33 PM) I Think U R Not..
@  yordan : (09 April 2014 - 09:28 AM) I'm The Master Of The Shoutbox!
@  yordan : (05 April 2014 - 10:32 PM) He-He
@  Ritesh : (04 April 2014 - 06:59 PM) Ha Ha Ha ....
@  yordan : (04 April 2014 - 11:15 AM) Welcome Back, Starscream!
@  yordan : (03 April 2014 - 02:31 PM) And I Hope That He Will Come Back Soon :)
@  yordan : (01 April 2014 - 02:53 PM) Nice, Ritesh Came, I'm Not Home Alone Today.
@  Ritesh : (01 April 2014 - 08:51 AM) Oh!!! Poor Dear Yordan..
@  yordan : (31 March 2014 - 10:02 AM) I'm A Poor Lonesome Cow-Boy
@  yordan : (27 March 2014 - 02:22 PM) He Is Unpatient Due To His Patients!
@  Ritesh : (27 March 2014 - 10:46 AM) :(
@  Ritesh : (27 March 2014 - 10:46 AM) He Is Busy With His Patients.
@  yordan : (26 March 2014 - 08:12 PM) Ahsani, Where Are You?

Photo
- - - - -

Wordpress Plugin Development: Do_Action Vs Add_Action


2 replies to this topic

#1 Ahsaniqbal111

Ahsaniqbal111

    Super Member

  • Members
  • 895 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Medical education
    Anatomy
    Physiology
    Biochemistry
    Computer and Internet
    Google
    Facebook
  • myCENTs:31.22

Posted 01 March 2012 - 06:27 PM

I have started to get into wordpress plugin development. Its just a start and there would be a lot of things that I won't understand and would require some time but there is one thing (in fact two) that I need to discuss specifically, because they appear to be quite important and I don't get them at all.
Actually, it is the difference between do_action and add_action and similarly the difference between apply_filters and add_filter. It is quite a basic concept and I think if I go pass it without properly understanding it, I might be in trouble when dealing with complex problems.

#2 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,744 posts

Posted 01 March 2012 - 11:10 PM

Isn't it that you first have to add the filter, then apply it in some place? Like here http://wordpress.sta...d-its-variables

#3 Ahsaniqbal111

Ahsaniqbal111

    Super Member

  • Members
  • 895 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Medical education
    Anatomy
    Physiology
    Biochemistry
    Computer and Internet
    Google
    Facebook
  • myCENTs:31.22

Posted 02 March 2012 - 06:55 AM

I guess its not like that. I have been reading a book about wordpress plugin development. And from what I have read till now, I am assuming that add_filters is used to add a filter to a hook during execution of the wordpress code. So it is the practical part which has to be used when working with filters. On the other hand, apply_filters is used to create new filters (but I am not sure about it as I don't understand what exctly it does). It has confused me alot and I don't want to go further ahead without properly understanding this basic idea.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users