Posted By

SalmanAbbas007 on 12/17/10


Tagged

php wordpress widgets


Versions (?)

Get Widget Options for Wordpress


 / Published in: PHP
 

  1. function get_widget_option($option_name){
  2. $options = array_filter( get_option( $option_name ) );
  3. unset( $options['_multiwidget'] );
  4. foreach( $options as $key => $val ) {
  5. $options = $options[$key];
  6. }
  7. return $options;
  8. }

Report this snippet  

You need to login to post a comment.