Advertisement
daymobrew

Rename Genesis Search input field from s

Sep 26th, 2019
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2. /*
  3. Plugin Name: Rename Genesis Search input field from s
  4. Plugin URI: https://www.damiencarbery.com
  5. Description: Change from s to something else.
  6. Author: Damien Carbery
  7. Version: 0.1
  8. */
  9.  
  10.  
  11. add_filter( 'genesis_attr_search-form-input', 'dcwd_attributes_search_form_input', 15, 3 );
  12. function dcwd_attributes_search_form_input( $attributes, $context, $args ) {
  13.     $attributes['name'] = 'super';
  14.  
  15.     return $attributes;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement