Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Replace default WP search and dropdown placeholder

/**
*Replace WP/Woocommerce deafult search and dropdown placeholder text
*/
function wpforo_search_form( $html ) {

    $html = str_replace( 'placeholder="Search ', 'placeholder="Search All Tyres ', $html );

    return $html;
}
add_filter( 'get_search_form', 'wpforo_search_form' );

add_filter( 'wp_dropdown_cats', function( $html, $args ) {
    if ( $args['taxonomy'] == 'product_cat' ) {
        $html = str_replace( '<select', '<select data-placeholder="Choose Application"', $html );
    }
    return $html;

}, 10, 2);
Comment

PREVIOUS NEXT
Code Example
Php :: Laravel A row must be an array or a TableSeparator instance. 
Php :: push to aws instance ssh without using laravel 
Php :: laravel command optional parameter 
Php :: how to get file name in upload images in php 
Php :: laravel store file specifiying name and disk 
Php :: Get page title, excerpt or content by id 
Php :: laravel validation on gropu route 
Php :: avoid data insertion if an error occurs in laravel 
Php :: get_html_translation_table (PHP 4, PHP 5, PHP 7, PHP 8) get_html_translation_table — Returns the translation table 
Php :: validations php or js 
Php :: bar chart in js,php prt 1 
Php :: laravel sql illegal collation 
Php :: register column types octobercms 
Php :: default time zone for europe php 
Php :: Wonder Gallery WordPress plugin php code to display a gallery 
Php :: change varchar limit in migration file. 
Php :: how to get many of quensation php programming language 
Php :: datetime-local laravel migration data type 
Php :: wp_remote_post decode data 
Php :: laravel dispatch execute multiple 
Php :: extract date from datetime object in php 
Php :: laravel check if pagination is empty 
Php :: wordpress get_permalink not working 
Php :: assertequals vs assertsame 
Php :: how to download file in laravel 8 delelete from directry 
Php :: php tableaux 
Php :: seeder name singular or plural laravel 
Php :: how can we manage category and product in laravek 
Php :: mr deepfakes forum 
Php :: upload video file using ajax php 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =