Set a maximum upload count for users on a specific user role
For users with the Contributor user role, I want to restrict the total amount of images that they are allowed to upload. I found this code posted on an answer here:
For users with the Contributor user role, I want to restrict the total amount of images that they are allowed to upload. I found this code posted on an answer here:
I’m wondering how the number of downloads displayed in the plugin-directory correlates to the number of actual websites using the plug-in.
I’m developing a website that needs to allow users, within Gravity Forms, to submit a PDF file and have a JPG thumbnail created of the first page of the PDF that is then displayed in the created post.
I am trying to using jquery ui tabs with ajax calls to run a function. Here is the code i am using:
For the purposes of my site, I have my Permalinks set to /blog/%postname%/ for all posts.
Previously, I was able to selectively load child pages for a currently-selected parent page using logic such as:
So far I’ve been using the following code to remove the dashboard update message (“WordPress 3.5 is available! Please update now.”):
How to disable edit post option for post one day after publication?
We’re using JWT (JSON Web Token) for authenticating our WordPress application with an external service. The current flow we’re thinking of is like this:
In 3.4 I used the following function to change image upload folder by post type.
Different upload directory based on post type in a theme
Now it doesn’t work anymore in 3.5. Do you have any idea how to replace this function in 3.5 version?