160 reputation
6
bio website
location
age
visits member for 1 year, 6 months
seen Feb 4 at 23:49

Feb
1
accepted Prevent from deleting any user role but subscriber
Feb
1
answered Prevent from deleting any user role but subscriber
Feb
1
comment Prevent from deleting any user role but subscriber
Wow, thank you, that is a very thorough answer. The first idea is more than enough for me as I'm trying not my client to mess with the users by mistake, that's not an issue for me if there is some workaround to delete a user as the client is not savvy enough to do so. However, the first solution seems to be the way to go but it doesn't work yet... I put this first "add_filter" function inside "functions.php" but the "delete" link is still visible below each user. And if this code is supposed to go inside the core of WP, that might be an issue for further updates...
Feb
1
asked Prevent from deleting any user role but subscriber
Jul
6
asked One step picture upload
Jul
3
asked Rename a row action label
Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 8 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 8 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 9 characters in body
Feb
28
revised Image size filtering in Media uploader according to custom post type
added 1558 characters in body
Feb
28
comment Image size filtering in Media uploader according to custom post type
I might add that the Media Uploader must know the CPT post attributes somehow as it uses them in the database to link the attachment post id to the CPT post id, but the global variables regarding the post/post_id/custom_post_type retrieved when queried are those of the attachment post, not those of the CPT post. I checked this by testing the custom post type queried when the Media Uploader pops up and its always "attachment"...
Feb
28
comment Image size filtering in Media uploader according to custom post type
Thank you Vinod Dalvi. I already use this exact same script but it will not set any custom image size, whatever the post because the acutual custom type is never part of the condition. As I said before, this is probably due to the fact that the Media Uploader is inside an Iframe and that the current post is the one of the media file (different from the article one) and that the post_type from that window is always "attachment" (which is the custom post type of the picture it is dealing with). That's the core of the problem. I think it's a scope problem.
Feb
28
revised Image size filtering in Media uploader according to custom post type
deleted 3 characters in body
Feb
28
asked Image size filtering in Media uploader according to custom post type
Feb
21
comment How to Display Frontend CSS for Administrator only
Thank you DigitalSea. It worked like a charm.
Feb
21
accepted How to Display Frontend CSS for Administrator only
Feb
20
comment How to Display Frontend CSS for Administrator only
Thank you. Like I said, I would rather modify the header.php file and create a condition on the css link. Would the "if" statement above work there? I don't have access yet to the website to verify.
Feb
19
revised How to Display Frontend CSS for Administrator only
added 276 characters in body