3. Create a Custom Post Type - Let's Build a WordPress Plugin From Scratch

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • In this video we create a WordPress custom post type so we can store contact form entries.
    You'll learn how to create a simple class in your plugin to encapsulate your plugin code so all of your methods are contained to stop naming clashes.

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

  • @theman7050
    @theman7050 3 ปีที่แล้ว +9

    Listen to me when i say NO ONE EXPLAINS WORDPRESS CONCEPTS LIKE YOU ON TH-cam. I always wondered what these classes and OOP is. But all those blogs on the internet assume the reader is a pro already and they jump right onto the hardcore codes without explaining the nitty gritty like u do. you are an indespensible asset for the community. Never stop making videos. 💐😃

  • @reverendbluejeans1748
    @reverendbluejeans1748 3 หลายเดือนก่อน +1

    Something actually works in my life. It did have a red highlight under add_action but I figured this might not be a problem.

    • @SoftwareDevNadir
      @SoftwareDevNadir 10 วันที่ผ่านมา

      yeah, its just a function that will be used by wordpress, but isnt one that comes by default in php.

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

    I really appreciate you! Mr. Digital Sir!! amazing nice videos..

  • @adityaferryansugiarto5856
    @adityaferryansugiarto5856 2 ปีที่แล้ว +1

    Thank you for all of your educational content

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

    Really nice WP tips!

  • @sihanmao7751
    @sihanmao7751 ปีที่แล้ว +4

    Hi, is there anyone could tell me how to type "==>"?
    In section "$args = array(
    'public' ?????

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

    Hi, great series you got going on here. I've just wanted to search somethink like this, I've just finished your series about Wordpress theme, because I am working on my own and wans't sure about some thinks and this new stuff from you just poped out. Thanks

  • @NikolaDmitrasinovic
    @NikolaDmitrasinovic 2 ปีที่แล้ว +3

    It doesn't add Contact form to a meni. I checked the code, its fine, no typos. What might be wrong?

    • @paullorosa_
      @paullorosa_ 2 ปีที่แล้ว +1

      try __construct() instead of _construct()

    • @NikolaDmitrasinovic
      @NikolaDmitrasinovic 2 ปีที่แล้ว +1

      @@paullorosa_ Thanks

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

      did you turn on plugin (activate) ?

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

      @@paullorosa_ thank you! I had same issue, it fixed it

  • @mohamedyoussef8835
    @mohamedyoussef8835 ปีที่แล้ว

    Awesome videos ++++++++++++ 🙂

  • @mojtabafallah8913
    @mojtabafallah8913 3 ปีที่แล้ว

    Very good

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

    I checked my code a triple times. no errors. But still Contact Form is not showing up in the admin panel. Someone any ideas pls!

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

      i have the same problem...

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

      @@leonardscharf909 Did you found a solution? Goodluck anyway!

    • @Jakub-Putaj
      @Jakub-Putaj 2 ปีที่แล้ว

      @@Jaydon05 it is not showing in plugins section? if that's the case i used comments from acf plugin and then its showed in plugins section

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

      did you turn on plugin (activate) ?

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

      try __construct() instead of _construct()
      you need 2 "_" and not only one before construct

  • @dandev8514
    @dandev8514 3 ปีที่แล้ว

    Thanks