wp_stateless_set_file

wp_stateless_set_file

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

do_action('wp_stateless_set_file') is found 1 times:

  • /lib/classes/compatibility/polylang-pro.php line 145
     
              if ( !empty($data) ) {
                try {
                  foreach ( [$attachment_id, $tr_id] as $id ) {
                    do_action('wp_stateless_set_file', $id, $data['file']);
    
                    $sizes = $data['sizes'] ?? [];
    
                    foreach ($sizes as $name => $size) {
                      do_action('wp_stateless_set_file_size', $id, $name, $size);
                    }
    

See this hook used in plugins: