私はModern Tribeの "The Events Calendar"プラグインを使用しています。私はajax getステートメントでロードされているPHPファイルの冒頭に以下のコードを持っています。WordpressのModern Tribeの "Events Calendar"プラグインが動作しません。
if (!function_exists('tribe_create_event')) {
echo "function does not exist";
return;
}
ここにajaxコールがあります。
jQuery.get("http://allthingsbahai.net/wp-content/themes/accelerate-child/insertdate.php",
{gregdate: gregdate, badidate: badidate},
function(result, status) {
alert(status);
alert(result);
//alert(result.badidate);
//alert(result.gregdate);
}
);
ステータスは成功し、結果は「機能がありません」と返されます。私はこの時点で困惑している。カレンダーはうまく動作し、WordPressの管理インターフェイスからエントリを受け取り、適切に表示されます。 私は困惑しています。
tribe_create_event関数は存在しますか? – madalinivascu
「イベントカレンダー」インターフェースの一部です。 [ドキュメントへのリンク](https://theeventscalendar.com/plugin/the-events-calendar/page/2/) [その他のドキュメントへのリンク](https://theeventscalendar.com/function/tribe_create_event/) プラグインがインストールされ、有効化されているので、なぜ動作していないのか分かりません。 –
wp_ajaxアクションを介してWordPressでajaxを呼び出す方法を使用していないのはなぜですか? – madalinivascu