57,531 reputation
559158
bio website Rarst.net
location Kiev, Ukraine
age 29
visits member for 4 years, 3 months
seen 9 hours ago

Creator of QueryPosts - better WordPress code reference

@Rarst on Twitter | Careers profile

Code that is produced at and for this site by me is additionally under MIT license.


10h
comment Is it safe to use $_POST directly in my plugin instead of using admin-ajax.php to receive data from ajax?
@f.n174 you cannot hook into anything in a plugin because in general case plugin has no idea where WordPress core is. The building of custom endpoints is challenging and practically limited to private code. If you want to do it then do, but you aren't going to get answer other than it's likely just doing it wrong.
11h
answered Is it safe to use $_POST directly in my plugin instead of using admin-ajax.php to receive data from ajax?
11h
comment How to add random post title with tooltip
What had you tried? Please note that questions in "I need this" format don't do too well here. Try to elaborate on how far you got and which specific elements you have trouble implementing.
11h
comment duplicate comments wp_insert_comment
Literally if you import comments repeatedly then they will be imported repeatedly. You need to decide which precisely are conditions that make comment duplicate and how to handle it. Making requests to a remote system on every load is probably horrible for performance too btw.
11h
comment manually login working on local but not working on live server in wordpress
On which line/code precisely do you get the error?
11h
revised How to change hover color on bulk-action-selector-top and bottom on wordpress admin?
edited body
1d
comment Best way to enqueue CSS and JS in a specific location
My guess would be content_url(), but I am not confident what does it return in multisite precisely. Don't have one on hand to test.
1d
comment How to add class to the last image of the last post in a loop
Pass the class as needed to the the_post_thumbnail() call?.. Your snippet essentially already has everything you are asking to do.
1d
answered Different structure/content for posts from a custom post type
2d
revised Does a parent page's post_title have to appear in a child page permalink?
deleted 92 characters in body
2d
revised Does a parent page's post_title have to appear in a child page permalink?
added 20 characters in body
2d
answered Does a parent page's post_title have to appear in a child page permalink?
Dec
22
answered How to enqueu php files with custom variable & conditionals?
Dec
22
answered Call admin ajax using absolute url? Relative URL breaks (frontend ajax)
Dec
21
awarded  Announcer
Dec
21
comment Fully editable footer
Absolutely nope on widgets for it. Been there, done that, nothing but inconvenience in long run.
Dec
21
comment wp-includes/comment-template.php:26 - Trying to get property of non-object
@bonger as an answer please :)
Dec
21
answered Independent search tool that returns exact match of a post title
Dec
21
comment WP DB Location for “Next Post to Create” Index Value
@milo as an answer please :)
Dec
21
answered Show different website layout if no sidebar added