wp_stateless_skip_add_media

wp_stateless_skip_add_media

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.2

apply_filters('wp_stateless_skip_add_media') is found 1 times:

  • /lib/classes/class-utility.php line 196
             * @param string            $attachment_id  Attachment ID.
             * @param bool              $force          (optional) Whether to force the sync even the file already exist in GCS.
             * @param bool              $args           (optional) Whether to only sync the full size image.
             */
            $check = apply_filters('wp_stateless_skip_add_media', null, $metadata, $attachment_id, $force, $args);
    
            $client = ud_get_stateless_media()->get_client();
    
            if ((!is_wp_error($client) || ($sm_mode == 'stateless' && !wp_doing_ajax())) && !$check) {
    
              $image_host          = ud_get_stateless_media()->get_gs_host();
    

See this hook used in plugins: