Creating Custom Admin Menu Page in WordPress or ClassicPress

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 15

  • @jarodbottom7704
    @jarodbottom7704 5 ปีที่แล้ว +2

    This video was very helpful!
    One question though: Instead of using echo for var_dump...Is there a way we could store such data in a .json file?

    • @TechiePress
      @TechiePress  5 ปีที่แล้ว +1

      Thanks for the Feedback. I use the echo or var_dump() to see what I have to work with. The information returned is json from the server. However, you can save the data in json or txt file using fwrite() if need be or even save it in the DB as an option. Is there a reason for saving it in the json file?

    • @TechiePress
      @TechiePress  4 ปีที่แล้ว

      I finally made this ‪Add #WordPress External API query content to a local Plugin file th-cam.com/video/SPEJh9D6a3A/w-d-xo.html‬. I hope it’s helpful.

  • @ManikMia1
    @ManikMia1 3 ปีที่แล้ว +1

    great job

  • @GoTechUG
    @GoTechUG 5 ปีที่แล้ว +2

    Hiding that menu is something I've never thought of.
    Thanks for this video.

    • @TechiePress
      @TechiePress  5 ปีที่แล้ว

      GoTechUG Hiding the menu is not a good plan. It comes from a particular issue with the code I had in the initial lesson. WordPress does not allow two header echo calls. It breaks!

  • @kensleylewis
    @kensleylewis 5 หลายเดือนก่อน

    nice job!

  • @davidofug
    @davidofug 5 ปีที่แล้ว

    I said I will come here some day and watch your videos. This is a tone of valuable information.

  • @dipacata7
    @dipacata7 5 ปีที่แล้ว +1

    Great video, i have a question, i need to implement a call POST to an Payment API, how can I do for call my plugin when the user do click in "buy" button.

    • @TechiePress
      @TechiePress  5 ปีที่แล้ว

      Hi Diana, Are you making a payment gateway like for woocommerce? Or directly call an API from clicking the button?
      If you just want the second option, I would advise for you to use WP Ajax to get information from the form or input fields that can be stored in the DB or even used in JS fetch or using wp_remote_get() and feed that information from Ajax as headers or body parts in your API query. I hope this helps. Let me know if you have more questions

    • @dipacata7
      @dipacata7 5 ปีที่แล้ว

      @@TechiePress is for woocomerce

    • @TechiePress
      @TechiePress  5 ปีที่แล้ว +1

      Great. Woocommerce works with payment gateways because I handled payments, tracking of shipping and checkouts for you by default. Please read this article to see how to make a gateway. www.skyverge.com/blog/how-to-create-a-simple-woocommerce-payment-gateway/
      After making a default gateway like the one above, you can tap the existing woocommerce filters to use wp_remote_get to send information to your external API. I hope this helps

    • @dipacata7
      @dipacata7 5 ปีที่แล้ว

      ​@@TechiePress Thanks, now my new payment gateway appears in checkout page, but then I need to ask the phone number when client push "Place Order" and I can not find the correct hook forthat and in this moment is directly going to a thanks page.

    • @TechiePress
      @TechiePress  5 ปีที่แล้ว

      You can add a field to the check out form requiring the phone number to be filled before payments.

  • @hotmujradance
    @hotmujradance 2 ปีที่แล้ว

    please let me know how to design this page or how to add any wordpress page here? actually i am going to design it for job posting page, where i'll show form to store job detail in my database and want to retrive that from database to another wordpress page. please reply ASAP. Thanks