Limit on the max number of words per post?

You can hide the submit button, if to much words on the editor. The Editor has an id and also the button; use an small JS to realized your requirement. An example solution for the comment form can you find at the follow code and more infos on this post. jQuery(function($) { // configure var … Read more

Help! Turn php link data into url OR hide edit link in post admin OR hide drafts for all users except admin?

As far as I understood this right, you want to disable the possibility to reach any other side aside from the dashboard. Well, then here’s a short plugin for you: <?php ! defined( ‘ABSPATH’ ) AND exit; /* Plugin Name: (#45989) »kaiser« Allow Dashboard only access */ function wpse45989_access_dashboard_only() { if ( ! isset( get_current_screen()->id … Read more

Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg

I used this, inline, on specific pages (using get_current_screen()). I’d hoped this would enable me to hide/show the permalink panel under certain conditions. However, removeEditorPanel() removes the permalink panel globally. This isn’t completely horrifying, since the css still works conditionally, and the permalink can still be edited via the editor (by clicking on the title) … Read more

How to add a quicklink to the Posts Admin Published|Scheduled|Trash menu

You can use the views_{screen_id} filter (used here), which filters an array where the keys act as an ID for that ‘view’ and the value is the HTML to be used to display the view (such as ‘All’, ‘Draft’, ‘Trash’ etc.). You can simply add extra links to this array: add_filter( ‘views_edit-post’, ‘wpse_add_my_view’); function wpse_add_my_view($views){ … Read more

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