wp_session_encode
Encode the current session's data as a JSON string.
Description
(string) wp_session_encode();
Returns (string)
Usage
if ( !function_exists( 'wp_session_encode' ) ) { require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/libraries/wp-session.php'; } // NOTICE! Understand what this does before running. $result = wp_session_encode();
Defined (2)
The function is defined in the following location(s).
- /deprecated/includes/libraries/wp-session.php
- function wp_session_encode() {
- $wp_session = WP_Session::get_instance();
- return $wp_session->json_out();
- }
- /includes/Libraries/Session/wp-session.php
- function wp_session_encode() {
- $wp_session = WP_Session::get_instance();
- return $wp_session->json_out();
- }