In your code, calling the action admin_init
makes is_admin()
unnecessary. And, if not mistaken, is_page()
is meant to be used in the front-end…
But the solution is the following (based on this Answer):
add_filter( 'user_can_richedit', 'wpse_58501_page_can_richedit' );
function wpse_58501_page_can_richedit( $can )
{
global $post;
if ( 28 == $post->ID )
return false;
return $can;
}
Related Posts:
- Why isn’t is_page working when I put it in the functions.php file?
- Get the ID of the page a menu item links to?
- How can I programmatically create “child” pages on theme activation?
- How to display error messages using WP_Error class?
- Slugs as breadcrumbs for Pages
- Check if has any sidebar active on current page
- Remove Page Title from Static Frontpage
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Can I remove the Rich Text box editor for a specific post?
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Pages should have priority when using add_rewrite_rule
- Enqueuing Script in functions.php vs on the page
- Programmatically set page template based on page ID
- Delete pages and Create default pages for all new network sites
- how to change link of some wordpress pages
- Make menu structure match page heirarchy on page parent change
- Change the slug of a particular page every x hours
- wp_insert_posts keeps adding multiple pages
- How to include local menu based on page id?
- Batch update menu_order attribute alphabetically
- is_account_page() change to page slug
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- Don’t delete a page if it holds users
- List all-childpages on parent-page AND list child-pages on childpage itself but not the current one?
- Display post shortcode content in the sidebar?
- Why is my page feed returning empty content?
- Function only on a specific page
- Functions For Calling Specific Elements
- Get page id or status by private pages?
- Custom styles.css sheet for visual editor
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Disabling visual editor on a specific post
- Enqueue script on every page except one
- How to store a number (coming from cookie) into query vars for later usage in other filters?
- How do I register a new settings page? [closed]
- Only echo Page Content (not page title & page content together)
- get content from page through AJAX
- Adding tables to the WordPress Editor
- How to assign php file(template) to several pages with same prefix page name/slug
- Remove the delete link from pages without a plugin
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- Define an extra field for all pages (with no plugin?)
- Custom field not updating via functions upon publishing
- Remove heading tags on line break
- Why does my visual post editor break when I try to add a TinyMCE button?
- Using array page name together with page id to deregister script
- How to add a class name to the ancestor of a post?
- How to add an excerpt and read more link to a page?
- My website is generating weired url parameters of paginated pages
- How to use the do_action () with parameter
- How to remove row-actions from pages table?
- wp_is_mobile function
- Get user id from email?
- Custom menus displaying all pages instead of set pages
- Is there a WordPress equivalent to MediaWiki templates
- Problem with extract() with custom shortcode
- CSS stylesheet not loading
- Generate permalinks
- Best Practice for Syncing Local Development With Staging Development [closed]
- How to use max and min values of custom fields
- When using wp_enqueue_script(); in a theme why don’t we use add_action?
- How does this function get the id of the most recent post?
- How to create function from code?
- How to use Internationalized human_time_diff() function in Chinese?
- create shortcode to list users with specific meta key value
- How to add ‘data-caption’ inside an anchor tag
- Execute a ultimate member action when user role is updated
- Search filter by Post title OR Meta Title Value [duplicate]
- Why is functions.php file in child not initializing and over-writing parent?
- Filtering out the #more anchor link that gets produced by
- Exclude from the query posts with meta_key and meta_value
- How to add custom JavaScript in functions?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Javascript not loading after the document ready
- Need to convert image url to a Base_64 data url with wordpress function..
- Add Adsense code between job listings – wp job manager plugin
- Modify shortcode to work with custom post types
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- Show admin page, only if function is being used
- Fatal error: allowed memory size when after using enqueue_script
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- Help using ShortCodes to style whole chunks of the post
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- Is there is a way to check daily first login?
- delete_user_meta for user in spesific group
- Pagination not working on my archive page for a custom post type
- Remove Featured Images from Posts Older Than a Certain Date
- functions.php filters not applied in AJAX call
- Mail function not working with user accounts
- Adding result from PHP function into an input field
- Modifying Page-Links format
- how to handle multiple forloop?
- PHP error in shortcode [closed]
- Problem with removing characters “<” – WpAllImport