Restrict Login Subscriber users from accessing frontend
https://wordpress.org/plugins/restrict-content/ is a kind of solution. Check out.
https://wordpress.org/plugins/restrict-content/ is a kind of solution. Check out.
Your image’s src is pointing to the full size image, so it’s not an issue of permalink. The issue happens because of the sizes values. There is a variable that determines the width of your content, which then later WordPress uses to generates the responsive sizes for your images. This global variable can be set … Read more
Have you tried using BuddyPress? BuddyPress allows all these thing, and has many other features ( though things can be turned on and off if it’s too much )
Check with a array for the settings – $settings (array) (optional) An array of arguments. – on the function wp_editor. wp_editor( $post_obj->post_content, ‘userpostcontent’, array( ‘textarea_name’ => ‘user_post_content’ ) )
You only need to of these hooks show_user_profile to show the extra fields and personal_options_update to update, try: <?php ob_start(); include_once(“../../../wp-load.php”); get_header(); /* Get user info. */ global $current_user, $wp_roles; get_currentuserinfo(); /* Load the registration file. */ require_once( ABSPATH . WPINC . ‘/registration.php’ ); /* If profile was saved, update profile. */ if ( ‘POST’ … Read more
You can use wp_update_post() to change the status of a post. global $current_user; get_currentuserinfo(); $post_id = $_GET[‘post_id’]; $the_post = get_post( $post_id ); if ( $the_post->post_author == $current_user->ID && $the_post ) { $the_post->post_status=”draft”; wp_update_post( $the_post ); } Use wp_insert_post() with post_status => ‘draft’ to save a post.
No, it’s not okay to lock down or block access to wp-admin and/or it’s sub-directories. Not only you already mentioned this is a crude method, it could and most likely will break the site, depending on its theme/plugins. The reason is that some plugin or themes depend on either admin-ajax.php or admin-post.php to accomplish some … Read more
You want to submit the data to admin_post_(action) and then handle the request. You may need jQuery to intercept the click and supply all the required data, but this shows you the main parts. HTML <form action=”http://www.example.com/wp-admin/admin-post.php” method=”post”> <input type=”hidden” name=”action” value=”add_foobar”> <input type=”hidden” name=”data” value=”foobarid”> <input type=”submit” value=”Submit”> </form> PHP add_action( ‘admin_post_foobar’, ‘prefix_admin_foobar’ ); … Read more
From your comment above, I believe you’re running into issues with the _wpnonce piece of the puzzle. Looking at the code in /wp-admin/post.php, it appears that the untrash instruction is checking for a valid WordPress nonce, and not getting one. This might do the trick: <?php function wpse_95348_undelete_post( $post_id ) { // no post? if( … Read more
Notice: completely update code after OP update answer. Assuming you want to update in front-end the taxonomy ‘post_tag’ (the standard tags) fro standard post and a taxonomy called ‘research-sections’ for a custom post type called ‘research’. Probably you have to put the form in both single.php and single-research.php and in both you have to some … Read more