You can generally edit the capability of the tinyMCE WYSIWYG Editor for ACF with the acf/fields/wysiwyg/toolbars
hook.
By default the WYSIWYG editor has two toolbars, “Full” and “Basic” but you can also create you own(see docs)
Removing the formatting option for the “Full” WYSIWYG editor can be accomplished like this:
add_filter( 'acf/fields/wysiwyg/toolbars' , 'my_toolbars' );
function my_toolbars( $toolbars )
{
// Edit the "Full" toolbar and remove 'code'
// - delet from array code from http://stackoverflow.com/questions/7225070/php-array-delete-by-value-not-key
if( ($key = array_search('formatselect' , $toolbars['Full' ][2])) !== false )
{
unset( $toolbars['Full' ][2][$key] );
}
}
SRC: https://www.advancedcustomfields.com/resources/customize-the-wysiwyg-toolbars/
Related Posts:
- ACF Wysiwyg Editor Image srcset for responsive images [closed]
- Advanced Custom Fields plugin : displaying a field while omitting the p tags
- TinyMCE’s “Clear Formatting” button doesn’t remove lists and headings
- Filtering multiple custom fields with WP REST API 2
- How to import CSV into Custom Post Type custom fields?
- ACF – get fields from group
- Front end form to create a custom post with preview
- update_post_meta and update_field ony working when saving the post
- How to get “Additional CSS Class” for ACF Gutenberg block
- Advanced Custom Fields select field : How to echo the label, not the value? [closed]
- ACF: get_field() returning false [closed]
- Generate a excerpt from an ACF-wysiwyg-field
- Adding custom fields to the header.php
- How to get_terms() only of terms matching an ACF meta value?
- Pods cms and “advanced custom fields” plugin
- Adding a body class with ACF
- Returning all radio button options when using Advanced Custom Fields
- WP REST API: Order posts by meta value (acf)?
- wordpress REST-API upload image to ACF
- Query between dates using Date Picker fields
- Order and group posts by acf by month and year
- Get the label from ACF checkbox [closed]
- Advanced custom field – gallery – display one random image
- How to update a custom post title from a front-end form using ACF fields?
- Showing an ACF field in admin posts dashboard
- Google Places API With ACF [closed]
- Check for the existence of custom field
- Vimeo thumbnails [closed]
- pre_get_posts filter using numeric meta_query comparison (from dates)
- ACF + contact form 7
- Is there a way to export Advanced Custom Fields data?
- Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]
- How to add a custom field to quick edit
- ACF Repeater Field, need IF statement for if sub field has content
- Can not create fields in ACF with code
- Gutenberg First Block on Page Conditional?
- Using meta_query and custom fields within pre_get_posts to return posts within a numerical range
- Comparing arrays with meta_query in pre_get_posts
- Set default date in datepicker of an advanced custom field
- Advanced Custom Fields plugin : displaying a YouTube video
- Advanced Custom Fields – Check if multiple get_fields exist?
- ACF – Custom fields have dissappeared [closed]
- Error in Validate Field with ACF plugin in WordPress
- How to order by just the Time Field in Advanced Custom Fields
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- Query pages for use of a flexible content layout
- WordPress Gutenberg, update post content programmatically
- ACF get field label in custom code
- ACF repeater field with meta_query
- How to add custom fields in rss feed
- sort by date in Advanced Custom Field
- Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards [closed]
- How to customize a divs background dynamically using Advanced Custom Fields Plugin?
- disable (read only) a field if within a custom post type name
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Replace post’s “the_content” with ACF value
- ACF if / else checkbox [closed]
- PHP echo stripping formatting in Advanced Custom Fields [closed]
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- Post Object field orderby (Advanced Custom Field)
- How to count ACF Flexible Content Rows?
- ACF Plugin – Random Gallery Image with wp_get_attachment_image()
- How to change the page title from functions.php
- Sorting custom admin column by value
- Acf Pro repeater field returns null [closed]
- Query between dates using date picker filter breaks in WordPress 4.2.1
- How to upload multiple images on frontend to ACF gallery using update_field
- Add user custom fields and make editable on frontend
- Insert Commas into ACF number field
- How I can check if get_theme_mod is in header or a template part
- Get ACF value after update user using save_post
- Using pre_get_posts for meta value of LIKE comparison on ACF repeater sub field
- Inconsistent behavior from number_format
- WP Rest endpoint with custom post type and ACF Fields
- random p tag in advanced custom fields?
- Advanced custom fields: Customise date picker’s start date (need to choose year 1500 onwards) [closed]
- How can I track and output when a field is updated? (currently using Advanced Custom Fields)
- Display post in order of ACF checkbox?
- ACF Custom validation message not showing up
- How to write PHP array to render JSON-LD Markup for Job Postings, with ACF
- ACF Advanced Custom Fields | Help me grab the fields on my WooCommerce homepage [closed]
- Is it safe and good practice to use do_shortcode to escape?
- Post edit – Media Library – Only get images from current post
- Output comma with get_field in Advanced Custom Fields [closed]
- Gutenberg on an ACF options page
- Update post meta value as date difference between two fields
- Problem with using custom shortcode with ACF WYSIWYG field
- My get_terms not working for custom fields
- Changing a specific value inside a complex repeater/flexible content field (ACF)
- Add up values from ACF number field
- Advanced Custom Fields: Conditional Statement with Select
- Updating the database with advanced custom fields
- How to share repeated fields across multiple pages?
- ACF: replace comma with another sign [closed]
- ACF custom block get_field() shows null on front-end? [closed]
- How to display genre of music content from one page to another page in wordpress
- Add PDF to ACF image field from file url
- Organize media library into folders and get folders via WP Rest API?
- ACF Update_field() update the field but changes are not seen in backend or rest api
- How to decrease the number of queries with get_posts and ACF?