I cleaned up your code, and put all the header information for installing it. Your plugin works fine, I tested it!
/*
Author: whoever
Plugin Name: Some Name
Plugin URI:
Text Domain: some-domain
Version: 1.0
*/
function DynamiteSearch($form)
{
$form = "<form method = 'get' id = 'searchform' action = ' ".site_url()." ' >";
$form .= "<div><label class="hidden" for="s">". __("Search for: ") . "</label>";
$form .= "<input type="text" value=" ". attribute_escape(apply_filters("the_search_query', get_search_query())) ." ' name="s" id='s' />";
$form .= "<input type="submit" id='searchsubmit' value=" ".attribute_escape(__("Look for it'))." ' />";
$form .= "</div>";
$form .= "</form>";
return $form;
}
add_filter('get_search_form', 'DynamiteSearch');
Try changing the submit button text to see if it works. Let me know if it worked for you.
Thanks,
Rutwick
Related Posts:
- How to create an API for my plugin?
- Plugins in symlinked directories?
- Best practices for using the transients API
- Elementor Fatal error: Class ‘Elementor\Widget_Base’ not found
- How Can I Add a Filter to Class Instance Only?
- Headers already sent error with CSV export plugin
- How to add HTML / Form to an Admin Bar Menu
- Unable to write test cases for a WordPress plugin using PHPUnit and WP-CLI
- Call activation hook multiple times
- Two-step login process – Is it possible?
- How to use is_multisite() in a must-use-plugin?
- why creating tables using $wpdb is not being executed while installing plugins?
- How to update the language used by wordpress from a plugin
- Is there any background process that I can run from plugin without depending on page hits on a website without affecting page-load speed?
- Woocommerce how to update variable product price programitically?
- Using $wpdb object in a widget
- Unified Approach for Placing Option Pages
- Define a function outside a class and call the function using action or filter hook
- Modifying WordPress plugins
- Modify a Free Plugin available on wordpress.org & include with my Premium Theme? [closed]
- Using wp_filesystem in Plugins to store customizer settings
- Can I use the different settings sections over different pages using the save options group?
- WordPress removing data attributes for scheduled post
- WYSIWYG editor in WP 3.2 plugin
- Verify Nonce returns false – Request Nonce returns correct value
- How do I write a shortcode that opens and closes?
- What is minimum time interval for which a cron be scheduled?
- Plugin developement and SVN
- Can I change header.php of current theme through a plugin function?
- Plugin writing: access file that was just uploaded
- Gutenberg blocks not getting styled on back end
- Using WPDB to output raw XML fails because of wp-blog-header.php
- Add a Save Button to Custom Meta Box [duplicate]
- PHP – Extend WordPress Woocommerce Revenue Analytics with custom field
- Amending REST API function without deactivate/activate plugin every time changes is made
- How can I listen to events in Gutenberg block?
- It’s possible to passing a ref to FormTokenField from parent component using forwardRef?
- How to show filters on table when using WP_List_Table
- Add a default WP comment form to forum template
- Gutenberg: import dependency or assign from global variable?
- Admin Posts List (edit.php) by post IDs
- Using WAMP, trying to create a plugin, getting error: You do not have sufficient permissions to access this page
- wp_localize_script is not adding a global variable for javascript
- wp_get_theme Warning: Illegal offset type
- wordpress is adding a second backslash when I use addslashes
- Silently register plugin pages
- Plugin: database creation
- Loading Modernizr (or other JavaScript libraries) for use in a plugin
- How do I remove folder and contents I have created while installing plugin
- How to add a hyperlink to the email content in WordPress?
- Menu page with minimum capability as ‘Subscriber’ doesn’t allow ‘Admin’ to access it?
- How to get the url of logo image?
- Plugin path comes wrongly
- Catching Form Submission in WordPress Admin Panel
- Converting core modification to a plugin
- How to replace settings in WordPress plugin from a theme
- Save temporary registration data
- Adding filter to the title without affecting the menu title
- How to validate inputs with filter in register_setting callback
- How can the_excerpt (or equivalent) be called on a category description?
- Plugin Creation: Overriding upload_max_size and post_max_size
- Problems with wierd characters and my plugin
- How to call a function from a shortcode function in an oop plugin
- How to access index file in Block Themes?
- wp_new_user_notifications to notify user and admin about new user registration
- Is it possible to use the MySQL’s ORDER BY FIELD() clause as part of the pre_get_posts hook?
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- How to create a custom post-new.php page for plugin , no wp menu
- How to create a custom WordPress page with my plugin?
- Why User_login key doesn’t work with wp_update_user()
- How to limit number of category term display in home page grids?
- A question on init and activation hooks
- Shortcode content is not showing. Only the [shortcode-tag] is showing
- Always hide a page from the menu
- How to remove the WooCommerce Product->Category thumbnail from admin [closed]
- Is it possible to replace MySQL with JSON files for WordPress
- Add custom html classes to gutenberg wrapper
- Replace “content-area” of themes 404 page with plugin?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- WordPress doesn’t create table on plugin activation
- Create Customization panel for Plugins not for theme
- Update database record in plugin
- How is construct function working even when variable is assigned null value?
- Custom signature appears twice on page
- Declaring a new woo commerce product type i get this error
- Can I use a hook other than ‘init’ to handle form submissions?
- Managing Custom Designed Content
- Stop theme displaying comments
- List Available Templates for Current Theme in a Plugin
- Do a summary based on sections in a post
- Plugin as custom page
- Adding Third Post Box Column: postbox-container-3
- Plugin capabilities
- WooCommerce custom payment gateway
- Deactivate plugin on registration
- How to filter manage categories listing
- Fetch Custom Woocomerce filed data and check the data avialble in Wp-user table as nicname or username using function.php
- How to get locale within WP REST Request?
- How to add extra EXIF data when images are uploaded?
- How to boost WP custom post REST API GET queries by custom taxonomies