WordPress tips and tricks

Изменить надпись “Search …” по-умолчанию в поле поиска:
“Just Add the below code to the functions.php in your wordpress theme and all done. ”
https://www.howtoonlinetips.com/change-placeholder-text-wordpress-search-box/

Я немного изменил этот код, чтобы отображалась оригинальная нопка с лупой  внутри формы поиска:

/** Change default Search … placeholder to custom */
function html5_search_form( $form ) {
$form = ‘<form role=”search” method=”get” class=”search-form” action=”‘ . home_url( ‘/’ ) . ‘” >
<label>
<span class=”screen-reader-text”>Search for:</span>
<input type=”search” value=”‘ . get_search_query() . ‘” name=”s” id=”s” placeholder=”Поиск” />
</label>
<input class=”search-submit” value=”Search” type=”submit”>
</form>’;
return $form;
}
add_filter( ‘get_search_form’, ‘html5_search_form’ );

 

DisableW3TC footer:

nano /var/www/wp-includes/functions.php
// Disable W3TC footer comment for all users
add_filter( ‘w3tc_can_print_comment’, ‘__return_false’, 10, 1 );

 

Check plugin for exploits and vulnerabilities: https://wpvulndb.com/plugins/slider-wd