Skip to content
CODEX
  • Home
  • About Us
  • Gallery
  • Contact Us
  • Widgets
    • Add Dashboard Widget
    • Widget Clone
    • How to access widget data from outside widget?
    • How to Build Custom Elementor Widget
  • Widgets Basic
    • Widget Functions
    • Unregister Widget
    • Register Widget
    • Is Active Widget
    • The Widget
  • Widgets Field
    • Title Field
    • Text Field
    • Textarea Field
    • Checkbox Field
    • Radio Field
    • Select Field
    • Page & Post Select Field
    • Menu Select Field
    • Category Select Field
    • Icon Select Field
    • Contact Form 7 Plugin Select Field
    • Image Field
    • Color Picker Field
    • WP Editor Field
  1. Home
  2. Widgets
  3. How to access widget data from outside widget?

How to access widget data from outside widget?

Posted on September 2, 2019 | by admin

<?php
global $post;
$w = get_option( 'widget_eye_headerrightwidget' );
print_r( $w );
echo $w[2]["txt2"];
echo  $w[2]['txt4'];
?>

Related articles

  • Add Dashboard Widget
  • Set and display a custom product variation value dynamically on WooCommerce single products
  • Simple Ajax Category Post Filter
Posted in Widgets

© 2025 TemplateEYE. All rights reserved.
Power by DeshiSoft