It was a 👼 character. Make sure you sanitize everything that gets written as field values, even if it’s a username.
trim(preg_replace("/[^\w\s]+/", "", $user->full_name))
I assumed there are no special characters in Instagram usernames. Never assume. I don’t really use Instagram, just my plugin supports it. BTW it got truncated on the first occurrence of the special character.
Related Posts:
- Performance of several get_option() calls
- WordPress setting with select – where is my mistake?
- update_option() passing empty array() but still updating
- Should I use wpdb prepare?
- How do I add CSS options to my plugin without using inline styles?
- “Error: Options Page Not Found” on Settings Page Submission for an OOP Plugin
- Is get_option function cached?
- How come `wp_options` table does not have an index on `autoload`?
- What are the advantages to the Settings API?
- Adding Widget form fields dynamically
- Is get_option() faster than accessing get_transient()?
- WordPress updates defined vs add_filter?
- Creating Settings Page with dropdowns for Plugin
- How to properly sanitize strings for update_option()
- Getting wrong relationship value in $args in wp_Query?
- How to add a new plugin page under desired Options page?
- How to get data from WordPress $wpdb into React Gutenberg Blocks Frontend?
- How is the data stored in the database?
- How do I handle multiple Submit buttons in plugin’s option page?
- Deletion of shared options using uninstall.php
- Why won’t register_setting() create a setting?
- Multiple entries in get_option results? or why is _multiwidget set to 1?
- update_option is not working!
- Save user-specific options in WordPress admin
- How to store accumulate multiple option values in a single array using Options_API
- array_map() for sanitizing $_POST
- WordPress Plugin Setting’s POST
- Passing array of strings to a SQL statement in a WordPress plugin
- Extend plugin options page
- Activation hook not creating table
- Using Checkboxes on Plugin Options Page for Custom Plugin
- Is the usage of ON DELETE CASCADE wrong or not allowed on wordpress?
- How to edit mySQL wp_posts table from plugin php?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- How to store a medium amount of options?
- query users by role
- How to add settings subpage from a plugin to a settings page created in theme?
- Plugin options not being saved or created
- Remove Internal Style Sheet if no Value Provided?
- What could cause my plugin’s options/settings page not to load?
- How to set “Site Address (URL)” programmatically on WP multisite?
- Using wp_parse_args to set up Plugin Default Settings
- WordPress database error for query INSERT INTO
- How to connect to AWS RDS external database (not for the core WordPress db)
- Storing product price data in the database
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- Multiple options pages validation for a plugin
- Add Plugin options as subpage to Theme options page
- get_option() not returning expected value from plugin
- Parse form values before sending to options.php
- Prevent invalid or empty values from being saved to the database and retain the form field values upon error
- How to add user details to different tables immediately after user registration
- Update problem with update_option() in combination with register_setting()
- mysql_real_escape_string() vs. esc_sql() in WordPress
- Insert/Update values to a table after blogname option etc. is updated
- wordpress how to query wp_options table
- How Can I add Fields in wp-option table?
- Plugin Options Array Set to Undefined
- Checked() function on a multidimensional array
- How to add new options to my WordPress plugin
- $wpdb->prepare with LIKE and sprintf
- Alternative functions for mysql_free_result and mysql_ping in wordpress functions
- Issue on Checkbox with Custom Option Page
- Make Database query only when option is updated
- The Correct Way to Use Nonce Field without Settings API
- Settings API: Setting default option via ‘get_option’ fails
- Two different wordpress sites – same server and IP address. Gaining Access to database 1 of 2
- how to save wp_editor html content in options table
- Custom Plugin Options Won’t Update
- How can I programmatically change a MySql variable (foreign_keys_check)?
- Problem with display data from get_option
- Auto-complete or auto-suggest from stored data in database
- What might be the reason of Couldn’t fetch mysqli_result on another domain?
- Brainstorm – Slow Query from Plugin Need to Speed It Up
- Create an user on external database
- why does get_option( ‘home’ ) not work while using in plugin [closed]
- Plugin Options not saving options and doesn’t work
- WordPress database error: [Query was empty] – using $wpdb->prepare()
- Decontruct serialized data array from wp_options
- wp_options not returning value for logged out users?
- How to Get Last ID?
- How does one update complex options?
- WordPress how do I echo SUM from a column of a MySQL table by user id AND type_operation
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Error Connecting to Database WHEN Installing WordPress on XAMPP [Tried All the Usual Stuff] (Pics Included)
- Plugins Settings page not updating
- WordPress delete mysql rows with string
- add_settings_error on validating plugin options API
- Organising and completing posts (mark as read and hide)
- Cannot save settings value
- pull data from wordpress database
- sql query not working in wp plugin
- $wpdb Mysql trigger problem
- Custom MySQL query to pull out Advanced Custom Fields?
- the correct way to use options from settings page [closed]
- Add_menu_page and saving settings
- Nothing happens on WordPress Update command
- Menu_slug used for creating options page
- Update option hook not firing
- WordPress plugin options page not saving options, no errors