WordPress filter hook
wp_session_cookie_httponly
Fired by 8 WordPress plugins, running on 39K+ sites between them.
How to use wp_session_cookie_httponly
It's a filter: your callback receives the value, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'wp_session_cookie_httponly', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Argument names come from WP Travel Engine's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
8 plugins that fire wp_session_cookie_httponly
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WP Travel Engine20,000+ installs
apply_filters( 'wp_session_cookie_httponly', false )includes/classes/Utilities/WPSession.php:126 -
Charitable10,000+ installs
apply_filters( 'wp_session_cookie_httponly', false )includes/libraries/wp-session/class-wp-session.php:163 -
WP Delicious4,000+ installs
apply_filters( 'wp_session_cookie_httponly', false )src/lib/wp-session/class-wp-session.php:292 -
WP Travel3,000+ installs
apply_filters( 'wp_session_cookie_httponly', false )inc/lib/wp-session/class-wp-session.php:132 -
Restaurant Menu and Food Ordering2,000+ installs
apply_filters( 'wp_session_cookie_httponly', false )classes/libs/wp_session/class-wp-session.php:131 -
Ninja Shop20+ installs
apply_filters( 'wp_session_cookie_httponly', false )lib/sessions/db_session_manager/class-db-session.php:211 -
Widget Master10+ installs
apply_filters( 'wp_session_cookie_httponly', false )includes/includes/class-wp-session.php:127 -
Post and Page Protect with Azure ADFewer than 10 installs
apply_filters( 'wp_session_cookie_httponly', false )vendors/wp-session-manager/includes/class-wp-session.php:139
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.