Wordpress调用插件弹出窗口里面

时间:2015-08-04 06:31:22

标签: php wordpress

我使用电子邮件订阅者。我需要这个插件调用弹出页面。我找不到如何制作。如果你能帮忙我会很开心。我希望有人能帮帮忙 :( 是我在调用页面时遇到的错误:致命错误:类' WP_Widget'在第171行的C:\ wamp \ www \ wp-content \ plugins \ email-subscribers \ classes \ es-register.php中找不到

我的代码;

In [132]: # Create unique couples X-Y (as needed to work with histogram2d)
     ...: data = np.random.randint(0,1000,(5000,2))
     ...: data1 = data[np.lexsort(data.T),:]
     ...: mask = ~np.all(np.diff(data1,axis=0)==0,axis=1)
     ...: data2 = data1[np.append([True],mask)]
     ...: 
     ...: X = (data2[:,0]).astype(float)/10
     ...: Y = (data2[:,1]).astype(float)/10
     ...: Z = np.random.randint(0,1000,(X.size))
     ...: 

In [133]: def histogram_based(X,Y,Z): # From other np.histogram2d based solution
     ...:   Xr = np.linspace(X.min(), X.max(), np.round((X.max() - X.min()) / np.diff(np.unique(X)).min()) + 1)
     ...:   Yr = np.linspace(Y.min(), Y.max(), np.round((Y.max() - Y.min()) / np.diff(np.unique(Y)).min()) + 1)
     ...:   data = np.histogram2d(Y, X, bins=[len(Yr),len(Xr)], weights=Z)
     ...:   return data[0]
     ...: 

In [134]: %timeit histogram_based(X,Y,Z)
10 loops, best of 3: 22.8 ms per loop

In [135]: %timeit indexing_based(X,Y,Z)
100 loops, best of 3: 2.11 ms per loop

1 个答案:

答案 0 :(得分:0)

对我来说听起来像是一个破损的WordPress安装。对于调试,您可以尝试在文件中包含wp-includes/widget.phpes-register.php)。

插件适用于我(4.2.3)!