Mikhail
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Gutenberg custom block with arrayForum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] Vk authorization errorAccording to VK documentation: “offline – Access to API at any time”, there is no “online” option. And in russian it’s also said “Not applicable in the Open API.”. Anyway I’m done with it. Thank you.
Forum: Plugins
In reply to: [Image Hotspot by DevVN] Plugin translationThere is a lot of places i did not achieved wit Loco Translate also.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Email notificationYes! It works! Thank you very much @gwin!
Here is my sample code so anyone can use it:
function wp_acen_on_advert_new( $post_id ) { /* collect data for mail content $advert = get_post( $post_id ); $post_title = $advert->post_title; /* etc.. any meta data */ $content = <<<TEXT Mail content TEXT; $subject = 'Your classifieds Ads created on site <website>'; $headers = 'Content-Type: text/html; charset: UTF-8'; wp_mail($user_email, $subject, $content, $headers); } add_action( "advert-pending_advert", "wp_acen_on_advert_new" );
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Email notification@gwin, i’ve created simple plugin and it works on publishing, but i can’t make it work on pending. Is there some special sort of action? Documentation says we can use something like this {status}_{post_type}, but
pending_advert
didn’t work. And in the database we have statusadvert_pending
.Also tried
advert_tmp_to_pending
,new_advert
I found another post, just like my: “Email notification when new listing is created”. But like it described there,
pending_advert
didn’t work in my case.Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Email notification@voltronik, but can i include generated price and ID of advert?
- This reply was modified 6 years, 4 months ago by Mikhail.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Fee Per Category fatal errorEverything work fine after enabling payments. Thank you!
Nevermind. I translated formatting, thanks god, i need events only in one language
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Fee Per Category fatal errorGreg, thanks! I’ll try to solve it.
It would be great to see explanation instead of fatal error in plugin. Thanks.
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Lithuan translationHere: https://we.tl/wx52qxglAR
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Lithuan translationJustina, i’d like to share. Please, tell me what should i do
Forum: Fixing WordPress
In reply to: “Continue reading”: how to change the text inside the buttonMaybe a little late, but i found it here:
/wp-content/themes/newslite/inc/hooks/excerpt.php