razvanfrandes
Forum Replies Created
-
I found the problem.
Is with woocomerce analytics api. It interfers with the default api.
I disabled the wc analytics and now works.
If anyone want’s to remove analytics from api :add_filter('woocommerce_admin_disabled', function () {
// Check if the request is a REST API request
if (defined('REST_REQUEST') && REST_REQUEST) {
return true; // Disable
}
return false; // Keep
});Here is what Woocommerce does when you access a endpoint.
[09-Dec-2024 17:55:34 UTC] Request start: 1733766934.9904
[09-Dec-2024 17:55:35 UTC] REST Request: /wc-analytics/reports
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/revenue/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/orders/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/products/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/variations/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/categories/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/coupons/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/taxes/stats
[09-Dec-2024 17:55:36 UTC] REST Request: /wc-analytics/reports/downloads/stats
[09-Dec-2024 17:55:37 UTC] REST Request: /wp/v2/posts
[09-Dec-2024 17:55:37 UTC] Request end: 1733766937.535- This reply was modified 1 year, 6 months ago by razvanfrandes.
- This reply was modified 1 year, 6 months ago by razvanfrandes.
- This reply was modified 1 year, 6 months ago by razvanfrandes.
- This reply was modified 1 year, 6 months ago by razvanfrandes.
- This reply was modified 1 year, 6 months ago by razvanfrandes.
I downgraded woocommerce from the last verstion until the first version which works withSJWT plugin and also SJWT plugin until it’s first release. But the same problems exists. Is somthing I do wrong?
I did this
function custom_buddyforms_auto_activate_user($post_id) { $user_id = get_post_field('post_author', $post_id); $user = get_user_by('id', $user_id); if ($user) { // Remove the activation key for the user to simulate activation. delete_user_meta($user_id, 'activation_key'); // Log the user in. wp_clear_auth_cookie(); wp_set_current_user($user->ID); wp_set_auth_cookie($user->ID); } } add_action('buddyforms_after_save_post', 'custom_buddyforms_auto_activate_user');- This reply was modified 2 years, 9 months ago by razvanfrandes.
Thank you.
It works.
I have another question. How I can auto accept and auto login users and skip email verification?
Can you please guide me?
Thank you.- This reply was modified 2 years, 9 months ago by razvanfrandes.
Hello Mark,
Thank you for the response.
Now I see that I asked the wrong question. My issue is how can I edit the vendor profile page. For example, where can I find the php template for this url: mysite.com/vendors/my-company.
Thank you.Sorry for my late response.
I am using ajax.Hello 😀
- For example if I send a message to you. That message status is unread until you view it. When you view the message I need to hook into it, for example when you view my message a email is sent to me that you have read my message.
Thank you 🙂
Thank you!
For example I have 2 situations.- How can I hook into when a new message is read?
- How to edit the email template, I need custom templating with php.
Thank you again.
Much apreciated!Dam…
It was having in my response converted to response.text 😐
This code works
Thank you for your time, awesome plugin! Waiting for vanila/react version 🙂
(I know it;s build with react/redux to bad we can’t hook into many things)function updateShortcode(thread_id) { fetch("/api/update_bm", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", }, body: new URLSearchParams({ thread_id: thread_id }), }) .then((response) => response.json()) .then((html) => { const container = document.querySelector("#shortcode-container"); container.innerHTML = html; console.log(html); jQuery(document).trigger("bp-better-messages-init-scrollers"); }) .catch((error) => { console.error("Error updating shortcode:", error); }); } document.querySelector("#messages").addEventListener("click", function () { var id = 10; updateShortcode(id); });- This reply was modified 3 years, 2 months ago by razvanfrandes.
Hey 🙂
Thank you for the quick response.
In this gist you will find the html.
https://gist.github.com/razvanFrandes/fcfbf302809101b71ec2cdc828349515The html is outputed, by the rest api.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] From page/index.html to page.htmlFor those who want to make the custom-posts to be like http://www.website.com/custom-post/my-post.html and not http://www.website.com/custom-post/my-post/index.html. I just used a plugin called custom-post-type-permalinks. You must add .html at the end of %postname%, ex: %postname%.html
- This reply was modified 8 years, 9 months ago by razvanfrandes.
Forum: Plugins
In reply to: [Simply Static - The Static Site Generator] From page/index.html to page.htmlFor those who had the same issues, i managed to make it work by adding this in function.php
add_action( ‘init’, ‘custom_page_rules’ );
function custom_page_rules() {
global $wp_rewrite;
$wp_rewrite->page_structure = $wp_rewrite->root . ‘%pagename%.html’;
}and rewrite the permalinks with /%postname%.html