jetpack_auto_fill_logged_in_user, false
jetpack_auto_fill_logged_in_user, false
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('jetpack_auto_fill_logged_in_user, false') is found 3 times:
- /extensions/blocks/subscriptions/subscriptions.php line 1333
function get_paywall_blocks_subscribe_pending() { $subscribe_email = Jetpack_Memberships::get_current_user_email(); /** This filter is documented in \Automattic\Jetpack\Forms\ContactForm\Contact_Form */ if ( is_wpcom() || false !== apply_filters( 'jetpack_auto_fill_logged_in_user', false ) ) { $current_user = wp_get_current_user(); if ( ! empty( $current_user->user_email ) ) { $subscribe_email = $current_user->user_email; } } - /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-field.php line 781
* @since 3.2.0 * * @param bool false Should the Contact Form be prefilled with your details when you're logged in. Default to false. */ $filter_value = apply_filters( 'jetpack_auto_fill_logged_in_user', false ); if ( ( ! current_user_can( 'manage_options' ) && ( defined( 'IS_WPCOM' ) && IS_WPCOM ) ) || $filter_value ) { switch ( $field_type ) { case 'email': return $current_user->data->user_email; case 'name': - /modules/subscriptions/views.php line 136
self::enqueue_style(); if ( self::is_jetpack() && /** This filter is documented in \Automattic\Jetpack\Forms\ContactForm\Contact_Form */ false === apply_filters( 'jetpack_auto_fill_logged_in_user', false ) ) { $subscribe_email = ''; } else { $current_user = wp_get_current_user(); if ( ! empty( $current_user->user_email ) ) { $subscribe_email = esc_attr( $current_user->user_email );