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
+21
View File
@@ -0,0 +1,21 @@
jQuery(function ($) {
$('#select-custom-field-input').autocomplete({
source: function (req, resp) {
$.ajax({
type: 'GET',
url: localize.ajax_url,
dataType: 'json',
data: {
action: localize.action,
param: req.term
}
}).done(function (o) {
resp(o);
}).fail(function () {
resp(['']);
});
},
autoFocus: true,
minLength: 2
});
});