Use wp_kses_post instead! It will keep all the tags allowed in a post, you can also use wp_kses and provide a list of tags and attributes
Related Posts:
- error_log() output for print_r() appearing on page
- Allow only 1 taxonomy per custom post type [duplicate]
- Custom plugin: Trying to show saved data on frontend
- Do I require the use of nonce?
- Fatal error: Call to undefined function plugin_dir_path()
- How to make WordPress plugin check for database changes and then do something?
- Retrieve multiple values passed to a single attribute in a shortcode
- How to change date language without changing the entire site language?
- Save selected item from dropdown menu in a meta box as a metadata value for a custom post type
- How to use copy() function and paste file in /wp-content/themes directory
- OOP Plugin Development. Including external object
- Authenticating to WordPress, using my own authentication two-factor system
- Use composer to load custom classes [closed]
- wordpress custom endpoint multiple params
- Why when I instantiate wp_error in a validation method my user registration method stops working?
- Create table in database when activating plugin
- Problem with WordPress Ajax form
- allow user to select pages from dropdown in my plugin
- Am I not understanding plugins?
- Using Font Awesome as post thumbnail
- How to set a custom path, for ajax image upload folder in admin?
- admin-ajax.php responding with 0
- Page Reloads Before AJAX Request Finishes
- Add htaccess rules with insert_with_markers at beginning of htaccess
- custom shortcode will not display the wrapped content
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- Insert array data on plugin activation
- WordPress php filter admin_body_class not working
- Common abstract class for plugins
- Same log message keeps on printing to debug.log file thousand of times
- Adding Default Settings to Theme My Login plugin
- Append HTML Using Shortcode
- Create onClick Event to Re-load a Widget
- Accessing the database from a plugin outside of action hooks
- Adding subdomain to home_url for “add_menu_page”
- How to select the contents in the text view textrea in wp_editor?
- Hide categories that are not used in the post type
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- WordPress ajax doesn’t display object method on jQuery .change() function
- filter default query to show just selected level of child pages in wordpress
- How to make my custom widget appear within WordPress widgets? Plugin development
- How to auto fetch customer details in Woocommerce in checkout page
- Can’t upload image using media_sideload_image
- Adding widgets to my plugin page instead of WordPress dashboard
- How to insert data into database using wp cron job
- I want to add custom add to cart link [closed]
- Execute long and heavy processes
- Access Child Class of Plugin Main Class Instance
- Custom plugin settings link doesn’t append current class to menu item when visited? Why?
- How to obtain the current website URL in my theme?
- How to hook code to show after the_content?
- Undefined method class::construct() when creating a plugin
- Using and saving custom dropdown boxes on user profiles
- Hook called before text widget save
- Problem with AJAX in wordpress plugin
- wpdb prepare insert table doesn’t work
- Can a plugin redirect product page based on IF condition?
- how to Update 15k products on plugin activation with meta_option
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- custom plugin with upload files does not work
- What is the difference between Null vs Empty (Zero Length) string?
- PHP: $_SESSION destroyed after page reload for my custom session
- send popup after wp_redirect()
- no_rest_route error on custom routes
- Payment field disappears on custom Paypal plugin
- Create ACF Checkbox to get all ACF Values from Parent Page
- Creating plugin with front-end pages
- How to Send Pingbacks for all Posts in WordPress?
- I am having errors with checkout on wordpress
- File is executed twice if plugin is activating
- product_type_options get saved value [closed]
- Display a custom name when the user has no name settle in his account
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Sum All the Post Meta of Published posts of Current Logged in user
- Autoloading Classes in Plugins
- Ajax in a class instantiated via shortcode
- Comparing Dates within plugin using PHP If statement
- Shortcode Works for Logged in Users but Not Working for Guest
- Singleton plugin activation; create database
- See output of a sql query while plugin installation in wordpress
- Why this plugin is not working?
- How to get WordPress Adminmenu items?
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- How keep woocommerce users separeted in multisite install and keep admins on network
- Import users and custom user meta from csv
- Implement OAuth2 in custom plugin
- Prevent users from display default wordpress login form
- login redirect based on user role not work as expected
- redirect user from login page if is logged
- How to lock users account until approvation
- Create custom table for wordpress custom registration flow
- Variable ++ in query loop
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- WordPress wp_set_object_terms does not assign product to custom taxonomy
- Cannot register a custom WP-CLI command
- Trouble with WordPress Settings API: Form Submits When Fields Called Directly, Fails When Using Callbacks
- How can I catch WordPress custom settings page slug has already changed?