WP PLUGIN 

・選択カスタムフィールドをオートコンプリートに変更
This commit is contained in:
2021-06-26 16:23:35 +09:00
parent b69c5fbd88
commit 693752d71a
7 changed files with 1374 additions and 23 deletions
+4 -1
View File
@@ -6,15 +6,18 @@ if ( ! defined( 'ABSPATH' ) ) {
if ( ! class_exists( 'APOP' ) ) {
require_once __DIR__ . '/../util/apop-order-setting.php';
require_once __DIR__ . '/../util/apop-customfield-select.php';
class APOP {
use APOP_ORDER_SETTING;
use APOP_ORDER_SETTING, CUSTOMFIELD_SELECT;
const TEMPLATE_DIR = __DIR__ . '/../template/';
public function __construct() {
add_action( 'admin_menu', array( $this, 'add_pages' ) );
add_action( 'admin_enqueue_scripts', array( $this, 'set_custom_field_ajax' ) );
add_action( 'wp_ajax_set_custom_field', array( $this, 'set_custom_field' ) );
}
public function add_pages() {