私はワードプレスの初心者です。管理者が投稿を追加できるワードプレス サイトがありますが、投稿を追加するときは、 appspot に対して GET メソッドの送信も行う必要がありますhttp://jhal-muri.appspot.com/sendAll?emailId=emailid&mssg=msg
。
どうやってやるの?wordpress の管理パネルで add_post オプションを変更する必要があることはわかっていますが、その方法がわかりません。
私はワードプレスの初心者です。管理者が投稿を追加できるワードプレス サイトがありますが、投稿を追加するときは、 appspot に対して GET メソッドの送信も行う必要がありますhttp://jhal-muri.appspot.com/sendAll?emailId=emailid&mssg=msg
。
どうやってやるの?wordpress の管理パネルで add_post オプションを変更する必要があることはわかっていますが、その方法がわかりません。
ワードプレスの場合
フォームを として宣言できますPOST
。次に、URL 文字列をhttp://jhal-muri.appspot.com/sendAll?emailId=emailid&mssg=msg
whereとして作成しemailId
、mssg
パラメーターが自動的に になりGET
ます。残りのinput
名前と値は になりPOST
ます。
サンプルコード
<form method="post" acion="http://jhal-muri.appspot.com/sendAll?emailId=emailid&mssg=msg">
<input type="text" value="" name="emailId" />
<input type="text" value="" name="msg" />
<input type="submit" name="submit" value="Send All" />
</form>