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
- framework for plugin/theme options panel? [closed]
- 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`?
- Update Option Stored in Multi-Dimensional Array
- What are the advantages to the Settings API?
- Adding Widget form fields dynamically
- Where to store plugin settings fields
- Is get_option() faster than accessing get_transient()?
- What’s the best method for emptying an option created with the Settings API?
- Releasing new plugin version, how to rename old options keys?
- 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?
- Does using set_transient() function can lead to MySQL problems?
- How to add a new plugin page under desired Options page?
- Save Plugin Version Number as Option?
- 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?
- Dropdown list of pages to get page id to store in plugin options
- update_option is not working!
- update_option_{$option} Too Few Arguments
- Save user-specific options in WordPress admin
- How to store accumulate multiple option values in a single array using Options_API
- Creating option to allow user to select the page my plugin content will display on
- Unified Approach for Placing Option Pages
- array_map() for sanitizing $_POST
- How can I free up the memory used by update_post_meta?
- WordPress plugin options and jQuery
- 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?
- Can I use the different settings sections over different pages using the save options group?
- Options API – Validation Callback $input is NULL
- How to edit mySQL wp_posts table from plugin php?
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- Best choice of options/settings framework for plugin/theme development
- Correct way check nonce (security) using old Options API
- How to store a medium amount of options?
- $wpdb -> Batch insert from XML File?
- 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?
- Serialize data for wp options
- 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)
- Custom delete option button in plugin settings
- Storing product price data in the database
- How To Change Post Author Default?
- WP_Editor – Saving Value into Plugin Option – Stripping HTML
- Editing options pages?
- 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
- Access bloginfo, get_option, and plugins_url from a non-core php file
- wordpress how to query wp_options table
- How Can I add Fields in wp-option table?
- How to get all queries’s results after they have executed?
- Plugin Options Array Set to Undefined
- Checked() function on a multidimensional array
- get_option() will not work without access to wp-config.php
- 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
- Using AND and bracket grouping in SQL not working
- 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?
- $wpdb->prepare is not working like mysql_real_escape_string