39 Comments

  1. Dhana Lama
    September 29, 2020 @ 12:01 am

    You tutorial is very much informative but why do you explain as if the viewers do not know anything like you are teaching OOP visibility and single quote string does not take variable, etc. That really weird part of your videos. Because to make plugins in wordpress anyone have to know wordpress theme development, procedural and OOP php. I suggest you dont explain all the stuffs since it is so annoying. I have watched many other videos of php where they have explained intelligently. Otherwise your video is really helpful.

    Reply

  2. Mehar Shahani
    September 29, 2020 @ 12:01 am

    Hey there, love this series!! One question – How do i add a similar link to one of the pages in wordpress. Say you go to "Pages" from the side nav and there within the individual pages, I want a link to my plugin. Is that possible?

    Reply

  3. Russ Glove
    September 29, 2020 @ 12:01 am

    Excellent. Love how you keep in your errors to help us look out for such details.

    Reply

  4. eric juquel
    September 29, 2020 @ 12:01 am

    Hi , i got this error on lesson 9 when create admin menu : Warning: count(): Parameter must be an array or an object that implements Countable in C:wamp64wwwWordpressLeBonEndroitwp-adminincludesclass-wp-list-table.php on line 513 . Any one had same issue and resolved it ? Thanks

    Reply

  5. Giang Lê Hoàng
    September 29, 2020 @ 12:01 am

    Hi, which extension did you you for VS so you can get code snippets suggestion (WordPress hook, functions…) as typing? Thanks! 😀

    Reply

  6. Matthias Hilger
    September 29, 2020 @ 12:01 am

    Got a question: I follow your tutorials and they're indeed very helpful, but how can I turn on the AUtoCOmpleate of WordPress functions in my IDE? I use Netbeans and really start to get frustrated about this since I cant get it work work, amybe you can help ^^ Thanks a lot!

    Reply

  7. Geoffrey
    September 29, 2020 @ 12:01 am

    For the admin build something i realized which is really great is the redux wordpress plugin which you can easily integrate with a theme or plugin. It has some cool configuration options which makes building the administrative section easy.

    Reply

  8. Ute Kuehne
    September 29, 2020 @ 12:01 am

    Thanks for your great videos, I can code with PHP and OOP, but struggling with doing this inside WordPress. Your Channel is a big help!

    Reply

  9. Tran Minh Son
    September 29, 2020 @ 12:01 am

    Very helpful tutorial. Thank you so much

    Reply

  10. Arshiya naz
    September 29, 2020 @ 12:01 am

    i am not able to find admin menu in admin panel neither getting any error plz help
    if(!class_exists('DropFallingInCup')){

    class DropFallingInCup{

    function __construct() {

    add_action('init' , array( $this , 'custom_post_type'));

    }

    function register(){

    add_action('admin_enqueue_scripts', array($this,'enqueue'));

    //admin_menu is custom action

    add_action('admin_menu',array($this,'add_admin_pages'));

    }

    public function add_admin_pages(){

    add_menu_page('drop plugin','drop','manage-options','drop_plugin',array($this,'admin_index'),'dashicons-smiley',110);

    }

    public function admin_index(){

    //require template

    }

    static function uninstall(){

    }

    function custom_post_type(){

    register_post_type( 'book' , [ 'public' => true , 'label' => 'Books']);

    }

    function enqueue(){

    wp_enqueue_style('mypluginstyle', plugins_url('/assets/mystyle.css', __FILE__));

    wp_enqueue_script('mypluginstyle', plugins_url('/assets/myscript.js', __FILE__));

    }

    }

    $drop=new DropFallingInCup();

    $drop->register();

    //activation

    require_once plugin_dir_path(__FILE__). 'inc/drop-plugin-activate.php';

    register_activation_hook( _FILE_ , array('DropPluginActivate' ,'activate'));

    //deactivation

    require_once plugin_dir_path(__FILE__). 'inc/drop-plugin-deactivate.php';

    register_deactivation_hook( _FILE_ , array('DropPluginDeactivate' ,'deactivate'));

    //uninstall

    //register_uninstall_hook( _FILE_ , array($drop ,'uninstall'));

    }

    Reply

  11. Ahiad Hazan
    September 29, 2020 @ 12:01 am

    great videos, thank you very much!

    Reply

  12. PeeR
    September 29, 2020 @ 12:01 am

    Congrats and many thanks for this AWESOME playlist. I'm trying to like all the videos of it (I stumbled upon it and I'm so grateful) but since the beginning I have some questions which stays unanswered. It's not an issue but I just can't keep it to myself anymore. You sometimes echo some things and it's echoing below the menu bar. Is it possible that we can't do that anymore? Cause it's not working on my side. Your videos are from 2017 and we're now on WP 5.2.2 so I imagine that WP doesn't allow any random echos anymore but may be I'm doing something wrong??

    Also, you managed to see some php error with the orange tables and I don't see them even if I defined WP_DEBUG to true at the beginning like you said. I think it's because my php debug is at false but I'm using Local by flywheel and I don't have access to php options… Do you have any idea what I could do to be able to see the php error tables like you do ?

    Thanks again 🙂

    Reply

  13. Viraj Raut
    September 29, 2020 @ 12:01 am

    Add_admin_page is not working. New menu is not showing up in dashboard (wordpress 5.2.2)

    Reply

  14. Tarang
    September 29, 2020 @ 12:01 am

    Capability "manage_options" not working. Getting message "Access denied"
    Problem resolved by using capability "edit_dashboard"

    Reply

  15. Lucas Bravo
    September 29, 2020 @ 12:01 am

    Puedes activar los subtítulos porfavor?

    Reply

  16. DD Khabar
    September 29, 2020 @ 12:01 am

    Thanks for the good tutorial…. Brother keep teaching

    Reply

  17. Jowin R
    September 29, 2020 @ 12:01 am

    this part, a bit confusing to me. As long something works out of it anyway.

    Reply

  18. Johnny Wichink Kruit
    September 29, 2020 @ 12:01 am

    Very good series

    Reply

  19. Nguyễn Tú
    September 29, 2020 @ 12:01 am

    Excuse me ,Sir! I would like to know the editor and the extensions you are using for the WP development, it evens recommends the WP Capability , which is very cool. Thank you and i really love your tutorial !

    Reply

  20. roldan jr montilla
    September 29, 2020 @ 12:01 am

    Great series! What Php extensions you are using in your VSCode Editor?

    Reply

  21. Stavros Kefaleas
    September 29, 2020 @ 12:01 am

    Alessandro : Please do a Udemy Tutorial mate!

    Reply

  22. sntech ideas
    September 29, 2020 @ 12:01 am

    I have find out solution of this fatal error. Nice tutorial and let's continue watching your video for learning plugin development

    Reply

  23. sntech ideas
    September 29, 2020 @ 12:01 am

    Good evening sir, my name is SATYAJIT from India, I am continue watching your video but after completion of Part-8 and when continue with Part 9 facing fatal error in wordpress dashboard while trying to active my plugin
    Parse error: syntax error, unexpected 'admin_index' (T_STRING), expecting ',' or ')' in C:xampphtdocswpplugintutorialwp-contentpluginsalecaddd-pluginalecaddd-plugin.php on line 38
    my complete source code is as under:
    —————————————————————————————————————————————–
    <?php

    defined( 'ABSPATH' ) or die( 'Hey, what are you doing here? You silly human!' );

    if ( !class_exists( 'AlecadddPlugin' ) ) {

    class AlecadddPlugin

    {

    function register(){

    add_action( 'admin_enqueue_scripts', array ( $this, 'enqueue') );

    add_action( 'admin_menu', array( $this, 'add_admin_pages' ) );

    }

    public function add_admin_pages(){

    add_menu_page( 'Alecaddd Plugin', 'Alecaddd', 'manage_options', 'alecaddd_plugin', 'array( $this, 'admin_index' ), 'dashicons-store', 110 );

    }

    public function admin_index(){

    require_once plugin_dir_path( _FILE_ ) . 'templates/admin.php';

    }

    protected function create_post_type(){

    add_action( 'init', array( $this, 'custom_post_type') );

    }

    function custom_post_type(){

    register_post_type( 'book', ['public' => true, 'label' => 'Books'] );

    }

    function enqueue(){

    // enqueue all our scripts

    wp_enqueue_style( 'mypluginstyle', plugins_url( '/assets/mystyle.css', _FILE_ ));

    wp_enqueue_script( 'mypluginscript', plugins_url( '/assets/myscript.js', _FILE_ ));

    }

    function activate() {

    require_once plugin_dir_path( _FILE_ ) . 'inc/alecaddd-plugin-activate.php';

    AlecadddPluginActivate::activate();

    }

    }

    $alecadddPlugin = new AlecadddPlugin();

    $alecadddPlugin->register();

    // activation

    register_activation_hook( __FILE__, array( $alecadddPlugin, 'activate') );

    // deactivation

    require_once plugin_dir_path( _FILE_ ) . 'inc/alecaddd-plugin-deactivate.php';

    register_deactivation_hook( __FILE__, array( 'AlecadddPluginDeactivate', 'deactivate') );

    }
    ————————————————————
    Sir, how to solve this problem

    Reply

  24. Bryan Fahrenheit
    September 29, 2020 @ 12:01 am

    9:12 man you explained this already several times, if people didn't grasp this idea by now then they've been coding along blindly

    Reply

  25. Vu Ngoc Linh
    September 29, 2020 @ 12:01 am

    Great tuts, thank you bro, I cant stop watching your video, I am working on WP plugin project and your series was helped me alot, thanks again!

    Reply

  26. Timothy Carey
    September 29, 2020 @ 12:01 am

    In the future I have to use 'plugin_action_links_'. plugin_basename( _FILE_ )
    Instead of using 'plugin_action_links_'. $this->pluginNa
    or it won't work at all.
    I checked and when I have the following code in __construct it echoes the correct basename all be it hidden by the menu.
    $this->pluginNa = plugin_basename( _FILE_ );
    echo 'hi '. $this->pluginNa;
    But then the same echo into the register function it doesn't show anything for basename.
    By the way, how you set up inspect to allow you to temporary delete various sections of the webpage. I think I saw checkboxes for this.

    Reply

  27. Bonke Dyan
    September 29, 2020 @ 12:01 am

    Wow Awesome alexandra. Keep up. I'm impressed.

    Reply

  28. Sabbir Shawon
    September 29, 2020 @ 12:01 am

    I have lost the edit link .? Can anyone help me for this?

    Reply

  29. Ahmet Han
    September 29, 2020 @ 12:01 am

    A simple note for those who made 'settings_links' method protected or private: It produces an error because hooks and filters are used by WordPress and callbacks at this hooks are called by wordpress. Thus, since they are called in fact outside of the class it will give an error. So in short you should make callback functions PUBLIC!

    Reply

  30. Ron 68be
    September 29, 2020 @ 12:01 am

    I did not see the code of the Edit link. Where is the code for this?

    Reply

  31. Madalin B
    September 29, 2020 @ 12:01 am

    it s harder than laravel brodah

    Reply

  32. William Barath
    September 29, 2020 @ 12:01 am

    at 15:15 you refer to interpolating a variable as quoting a variable. Quoting is the exact opposite. Quoting it would prevent it from being interpolated.

    Reply

  33. KnowledgeBase
    September 29, 2020 @ 12:01 am

    Is it also possible to use the add_settings_field() function?

    Reply

  34. Timothy Carey
    September 29, 2020 @ 12:01 am

    What editor do you use and doesn't, in a version for windows? Does Dreamweaver have a WordPress add on? I am interested because it would be nice to have that fill-in feature your editor has.

    Reply

  35. Bryce Kelsey
    September 29, 2020 @ 12:01 am

    I've added everything exactly the way you've done it and it's all worked up till now. After adding public function add_admin_pages() and saving, nothing shows up in the admin menu like it does in the video. Any ideas?

    Reply

  36. Taufiq Mahmud
    September 29, 2020 @ 12:01 am

    I am getting this error " Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'TradeBangla' does not have a method 'admin_index' in /home/codesman/public_html/trade/wp-includes/class-wp-hook.php on line 286" at this point " https://youtu.be/ruDWmHRNxvE?t=6m12s " 6m12s

    Reply

  37. Marcos Di Paolo
    September 29, 2020 @ 12:01 am

    why could it be that i have "headers sent error" when i try to echo $this->plugin;

    Reply

  38. Kevin Green
    September 29, 2020 @ 12:01 am

    In PHP 7.2 I get this error after adding in the filter on the plugin page, anyone else get this error?
    Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/var/www/WordPress/wp-admin/includes/class-wp-list-table.php on line 480

    Reply

  39. Es wake
    September 29, 2020 @ 12:01 am

    Can't get the settings page to show up. No idea why, Been over every line of the code. The link on the plugin page, and the page itself isn't showing up.

    The custom post page (that you named books) shows up though.

    Reply

Please Login to post a comment

X

Forgot Password?

Join Us