Server IP : 192.158.238.246 / Your IP : 18.227.89.169 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/jenniferflocom/www/wp-content/plugins/woocommerce/src/Blocks/Interactivity/ |
Upload File : |
<?php /** * Merge data into the state with the given namespace. * * @param string $namespace Namespace. * @param array $data State to merge. * * @return array The current state for the given namespace. */ function wc_initial_state( $namespace, $data = null ) { if ( $data ) { WC_Interactivity_Initial_State::merge_state( $namespace, $data ); } return WC_Interactivity_Initial_State::get_state( $namespace ); } /** * Render the Interactivity API initial state in the frontend. */ add_action( 'wp_footer', array( 'WC_Interactivity_Initial_State', 'render' ), 8 );