wordpress-plugin

Can I add “virtual” page in WordPress?

北城以北 提交于 2019-12-24 13:05:14
问题 On my WordPress site, I would like to create "virtual" page. By virtual page I mean the content that I can link to by URL. I'm using Facebook Webhooks and I would like to have a callback URL like this: https://example.com/facebook-webhook . I'd like it to be done via plugin, without actually adding any page to the database. Is there any way to add a page in WordPress that way? For now I'm using https://example.com/?facebook-webhook and checking for isset( $_GET['facebook-webhook'] ) in the

Wordpress global $wpdb function issue

感情迁移 提交于 2019-12-24 07:25:53
问题 I am working on a plugin, in plugin i want to add data in new table. I create a file "lsp_manage_foo.php" in this file i create <form action="<?php echo plugin_dir_url(__FILE__) ?>lsp_foo/lsp_manage_process.php" method="post" name="lsp_add_foo"> <table width="100%" border="0" cellspacing="4" cellpadding="0"> <tr> <td width="25%"> <label> foo Name </label> </td> <td width="58%"> <input type="text" name="lsp_add_foo" id="lsp_add_foo" value=""> </td> <td width="10%" align="right"> <input type=

My Wordpress website is opening too Slow [closed]

浪子不回头ぞ 提交于 2019-12-24 03:48:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . My WordPress website is opening too slow, I am using woocomerce, flipbook, ajax event calendar , Email newsletter , adrotate , and some other plugin. Theme Used : Nictitate ( FREE VERSION ) I don't know why it's so slow. I have installed W3cahce and Cloudflare to attempt to

What is the best way to interface with DynamoDB in Wordpress?

∥☆過路亽.° 提交于 2019-12-24 03:33:03
问题 I'd like to setup a Wordpress site but be able to query and display results from a DynamoDB table within a Wordpress page. I haven't started the development yet and wanted to see if anyone had advice on the best way to approach? Custom Wordpress plugin? Specific library to leverage to interface with DynamoDb? Appreciate any help/direction. 回答1: I worked with a contractor on this and created a plugin for Wordpress that seems to work well for displaying info from DynamoDB. I need to work on it

Edit HTML of woo commerce featured products widget

萝らか妹 提交于 2019-12-24 02:23:37
问题 I want to modify HTML code of woo-commerce featured product widget. Problem is that I can't find it inside my template folder/plugin folder. Does someone knows how to modify featured product widget of woo-commerce? 回答1: This is modified via the content-widget-product.php template, located in /woocommerce/templates/ . To override this template, copy: woocommerce/templates/content-widget-product.php to yourtheme/woocommerce/content-widget-product.php , and make any necessary modifications in

WordPress + plugin Really Simple SSL + json returning error

半世苍凉 提交于 2019-12-24 01:40:30
问题 So I have a Wordpress.org site with the plugin Really Simple SSL and I'd like to use ajax/JSON to update the database. The thing is that, with the help of our friend @BadHorsie here, I was able to identify that the plugin is appending <!-- Really Simple SSL mixed content fixer active --> after the json_encode() value. This is a bookmark system, so there is only 1 button. When it's clicked it adds a course in the database but if the course is already there, it removes it. Server side: if(

How to Display Custom meta field value insted of title on custon post list table?

 ̄綄美尐妖づ 提交于 2019-12-23 22:17:51
问题 I have created a custom post type "cinfo" and removed title and editor form the edit page. With the help of this code. Also displayed some custom meta fields which are relevant to my plugin. function remove_box(){ remove_post_type_support('cinfo', 'title'); remove_post_type_support('cinfo', 'editor'); } add_action("admin_init", "remove_box"); It looks something like this. Now when i see the list page I still see the title with edit, view and delete button beneath it. which I don't want

Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions

余生长醉 提交于 2019-12-23 20:17:11
问题 I need add a rewrite rule in my plugin, and distribute it with my code. All works fine if I put the rule in the .htaccess in the WordPress root folder, but I need distribute the plugin with my rule. I try to put a .htaccess inside the plugin folder and try to use the add_rewrite_rule function but doesn't works either. Here the .htaccess code that works correctly in WordPress root folder but doesn't works in my plugin folder: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule my-plugin

How to add option to woo commerce edit order page?

ε祈祈猫儿з 提交于 2019-12-23 18:43:18
问题 How to add another option here like order actions, order totals. I know how to create option page but not how to edit woocommerce options . Is there any way ? 回答1: Its really simple to customize the order and coupons in woocommerce because they are just another custom post type. You can use any functionality of a custom post type in there. You only need to keep in mind that the post type of Orders is shop_order and of Coupons is shop_coupon . If you want to add some custom option inside the

WordPress plugin + Composer?

喜你入骨 提交于 2019-12-23 17:25:10
问题 I'm making WordPress plugin that is using a few third party libraries. Is it common practice to use Composer for WordPress plugin? If it's okay to use it, then I assume that I should provide all Composer files along with my plugin, because I don't want to make people manually run composer install . Another question is, is it safe to use Composer's autoloading? I configured it to autoload my own classes and the libraries are of course autoloaded as well. That's convenient. Is using Composer