• Resolved martydev

    (@martydev)


    plugins/woocommerce/templates/myaccount/downloads.php I see action:

    
    <?php do_action( 'woocommerce_available_downloads', $downloads ); ?>
    

    where this action formed / built?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The hooked function is: ‘woocommerce_order_downloads_table’. This is in wc_template_functions.php at line 2607.

    Thread Starter martydev

    (@martydev)

    yes, thx.

    Say me please – where from come this variable(array) – https://i.imgur.com/O8ppFPk.jpg

    code from order-downloads.php
    in the file I dont see how filled ‘$downloads’

    Its a template. Variables in templates are passed to them by the function which calls the template:
    function woocommerce_order_downloads_table( $downloads ) {
    wc-template-fucntions.php line 2615

    Plugin Support abwaita a11n

    (@abwaita)

    Hi @martydev,

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, the above info was useful!

    If you have further questions, please feel free to open a new topic.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘where action formed / built?’ is closed to new replies.