WordPress stripping html and script tags from some admin users on save

When I add content to a page as the original admin user, I can past in the following code and it saves fine (old google search set up by another user): <form action=”http://www.google.com/cse” enctype=”application/x-www-form-urlencoded” id=”searchbox_001294947689528032268:0gmklvjoyzm” method=”get”> <input name=”cx” type=”hidden” value=”001294947689528032268:0gmklvjoyzm” /> <input name=”q” size=”40″ type=”text” /> <input name=”sa” type=”submit” value=”Search” /> <input name=”cof” type=”hidden” value=”FORID:0″ … Read more

Limit REST API output to current logged in user that is also author of the content

https://developer.wordpress.org/rest-api/using-the-rest-api/frequently-asked-questions/#require-authentication-for-all-requests This requires authentication for all reque​sts. add_filter( ‘rest_authentication_errors’, function( $result ) { if ( ! empty( $result ) ) { return $result; } if ( ! is_user_logged_in() ) { return new WP_Error( ‘rest_not_logged_in’, ‘You are not currently logged in.’, array( ‘status’ => 401 ) ); } return $result; }); Now when I add a … Read more

Restrict certain posts from being sent to the feed subscribers

Is there any way to restrict certain category’s posts or certain posts from being displayed into site default feed after published? I’m asking this because I don’t want few specific categorie’s posts to be sent to my feedburner subscribers. I think preventing them from displaying into site feed will also prevent them to be sent … Read more

Restrict access to post if it is currently being edited

On a platform with many Editors, the problem that I am experiencing is that two editors proofread the same post simultaneously (and disregarding the warning notice about someone else currently editing the post). Is there a solution where I can restrict access to a post if it is currently being edited by a different user? … Read more

Hiding posts from non logged in users

I wish to hide certain posts for anyone that is not logged in. I tried the Restrict Content (RC) plugin but that did only hide the content of posts, i wish to omit the post completely. Using RC as a foundation i tried the following: function hideFromUnknownUsers($postObject) { $rcUserLevel = get_post_meta ( $postObject->ID, ‘rcUserLevel’, true … Read more

How can I limit functionality in one version of a plugin?

I am busy writing a plugin with a free version and a paid, Pro version. For our initial release of both versions, I want to keep things as simple as possible, so I would rather defer using a strategy of a very extensible free version, with hooks implemented in a Pro version; I will give … Read more