Elementor:根据我的functions.php中的条件调用弹出窗口

问题描述

这里有人使用Elementor Pro吗?

如果我的functions.PHP中的某个条件成立,我想显示一条popup消息。

例如,

function test_validate( $passed,$product_id,$quantity ) {
    if( my condition here... ){
        $passed = false;
        //somehow,call the popup message.
    }
    return $passed;
}
add_filter( 'woocommerce_add_to_cart_validation','test_validate',10,3 );

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)