WordPress Question:
Why 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 |
Will I have the ability to update my own content? | How to create plugin for wordpress? |