WordPress Development Question:
Why the add_action() function not work in member function in wordpress?

Answer:
try replacing :
register_widget('test_function');
with:
add_action('widgets_init', register_test_funtion');
function register_test_funtion() {
register_widget('test_funtion');
}
register_widget('test_function');
with:
add_action('widgets_init', register_test_funtion');
function register_test_funtion() {
register_widget('test_funtion');
}
Previous Question | Next Question |
Tell me do I need to know any programming to make updates? | How to create plugin for the wordpress? |