Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why the add_action() function not work in member function in wordpress?



Why the add_action() function not work in member function in wordpress?..

Answer / Dharm Raj Singh

The `add_action()` function does not work within a class's method (member function) directly. Instead, you should register your action or filter outside of the method and then call the method inside the callback function.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

How do I setup a wordpress database?

1 Answers  


Can wordpress be used offline?

1 Answers  


In what case we cannot recommend WordPress to our client?

1 Answers  


Tell me what if I need help after the project?

1 Answers  


How do I make my wordpress site invisible?

1 Answers  


What is the difference between a permalink and a hyperlink?

1 Answers  


What is the difference between posts vs. Pageshow to store the post title in variable?

1 Answers  


Is it easy to use wordpress?

1 Answers  


Does wordpress have a database?

1 Answers  


Will changing wordpress theme affect content?

1 Answers  


In which cases you don’t see plugin menu?

1 Answers  


What are the differences between Posts and Pages?

1 Answers  


Categories