How to make WP Classic Editor required in jQuery

It looks like you’re trying to validate the content of a WordPress Classic Editor, ensuring it’s not empty, both in HTML and Visual modes. The issue arises with the Visual mode which is powered by TinyMCE. Unlike standard HTML form elements, TinyMCE’s content isn’t directly linked with its underlying textarea element in a way that … Read more

Function to consider a plugin activated for selected users only

yes, this is possible by creating a new function because thank to wordpress function activate_plugin() that can be used to activate the classic editor plugin for specific users // Define the usernames of the users who should have the Classic Editor enabled $CE_users = array(‘user1’, ‘user2’); // Check if the current user is logged in … Read more

How to allow Contributors to edit their own posts, whilst still needing to be reviewed by an admin?

Steps for setting edited posts by contributors to “pending review”: 1. Adjust Contributor Capabilities Your modifications to the contributor role are appropriate for allowing them to edit their posts. Ensure they can edit posts but cannot publish them. 2. Automatically Revert Posts to “Pending Review” on Edit Add the following code to your functions.php. This … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)