Restrict one post per author

I’m trying to create an events plugin and so far, I’m through with the following: A short-code that displays a form on the front-end to the user. The event display page that renders the output. ‘Events’ as custom post type and several custom-fields for additional event information. Problems: I want to restrict the users from … Read more

Change Comment Author Display Name

I am trying to change the comment author name (or more specifically, the review author in WooCommerce) to be First name Last Initial (e.g., “John D.” for “John Doe”). I got most of the way there with the following code in functions.php, but for some reason (perhaps because of how the comment/review was submitted) it … Read more

How to let contributors to create a new revision(draft) editing their published posts

I’m using a custom post type to let contributors have a personal page on the site. Any time a user registers on my site a script creates a custom type post that has the registering user as the author. To moderate users’ entries this post is published by an editor. I would like users (contributors) … Read more

Change the author slug from nickname to ID

I’ve changed the default registering option by allowing people to sign up with their e-mail addresses. They also have an option to add their firstname, lastname but it’s not required. // Allow email instead of nickname for login add_filter(‘authenticate’, function($user, $email, $password){ //Check for empty fields if(empty($email) || empty ($password)){ //create new error object and … Read more