WordPress Question:

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

Tweet Share WhatsApp

Answer:

try replacing :
register_widget(\\'test_function\\');
with:
add_action(\\'widgets_init\\', register_test_funtion\\');
function register_test_funtion() {
register_widget(\\'test_funtion\\');
}

Download WordPress (CMS) PDF Read All 32 WordPress (CMS) Questions
Previous QuestionNext Question
Will I have the ability to update my own content?How to create plugin for wordpress?