Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
3 votes

How to disable autocomplete on the wp-login.php page

If anyone cares this is a solution that worked for me if ( $GLOBALS['pagenow'] === 'wp-login.php' ) { ob_start(); } add_action('login_form', function($args) { $login = ob_get_contents(); ...
James's user avatar
  • 31
2 votes

How to disable autocomplete on the wp-login.php page

Here is a solution with PHP only I come up with: function disable_autofill_password($safe_text, $text) { if($safe_text === 'user_pass') { $safe_text .= '" autocomplete="new-password'; ...
vard's user avatar
  • 143
2 votes
Accepted

Autoprediction / Autocomplete Search with Meta Keys

If you want to show custom field values, you can't use WP_Query that select posts. It seems to me that the only available way is to write a sql query and execute it in $wpdb. global $wpdb; if ( ...
nmr's user avatar
  • 4,501
1 vote
Accepted

Maps search box autocomplete with callback JS function?

Try this in your js file: function robbte_map_initialize() { var input = document.getElementById('searchTextField'); var autocomplete = new google.maps.places.Autocomplete(input); ...
shanebp's user avatar
  • 5,063
1 vote

buddypress remove username from autocomplete

Try this but note that it may not send the message: '<span id="%s" href="#"></span><img src="%s" style="width: 15px"> %s %s' . "\n", esc_attr( 'link-' . $user->ID ...
shanebp's user avatar
  • 5,063
1 vote
Accepted

Internationalization autocomplete JS variable

And I'm wondering if I have to translate the array too if I want to make my plugin fully translatable. It wouldn't be fully translatable if you didn't, would it? So yes, you need to make these ...
Jacob Peattie's user avatar
1 vote

autocomplete="off" WordPress Login

Put and check following code in your theme functions.php and let me know if any query function wpse_159462_login_form() { echo <<<html <script> document.getElementById( "...
Pratik Patel's user avatar
  • 1,099
1 vote
Accepted

Convert Custom Post Data to Javascript Array for Autocomplete

$args = array( 'post_type' => 'promo' ); $loop = new WP_Query( $args ); $promos = array(); while ( $loop->have_posts() ) : $loop->the_post(); foreach((get_the_category()) as $category); ...
Mo_'s user avatar
  • 21
1 vote

Append Auto Suggest list to specific html tag?

You should care about tag input classes and CSS. All casses can be set in JS function: jQuery(document).ready(function ($) { $('#wpx_tags').suggest( window.ajaxurl + "?action=...
Tom's user avatar
  • 31

Only top scored, non community-wiki answers of a minimum length are eligible