wp_stateless_addon_files_root

wp_stateless_addon_files_root

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wp-stateless.4.1.1

apply_filters('wp_stateless_addon_files_root') is found 5 times:

  • /lib/classes/compatibility/buddypress.php line 73
            ));
    
            foreach ( [$full_avatar, $thumb_avatar] as $url ) {
              $name = apply_filters('wp_stateless_file_name', $url, 0);
              $absolutePath = apply_filters('wp_stateless_addon_files_root', ''); 
              $absolutePath .= '/' . $name;
    
              do_action( 'sm:sync::syncFile', $name, $absolutePath );
            }
          }
    
    
  • /lib/classes/compatibility/siteorigin-widget-bundle.php line 80
            $position = strpos($url, self::STORAGE_PATH);
    
            if ($position !== false) {
              $name = substr($url, $position);
              $name = apply_filters('wp_stateless_addon_files_root', '') . '/' . $name;
              $url = str_replace( ud_get_stateless_media()->get_gs_path(), ud_get_stateless_media()->get_gs_host(), $name );
    
              if ( ud_get_stateless_media()->is_mode('stateless') ) {
                $url = str_replace( ud_get_stateless_media()->get_gs_path(), ud_get_stateless_media()->get_gs_host(), $name );
              } else {
                $upload_dir = wp_upload_dir();
    
  • /lib/classes/compatibility/siteorigin-widget-bundle.php line 103
           * @return string
           */
          public function widgets_stylesheet_added($name, $instance) {
            $name = self::STORAGE_PATH . $name;
            $absolutePath = apply_filters('wp_stateless_addon_files_root', ''); 
            $absolutePath .= '/' . $name;
    
            $name = apply_filters('wp_stateless_file_name', $name, 0);
    
            $this->possibly_move_file($name, $absolutePath);
    
    
  • /lib/classes/compatibility/wpforms.php line 188
              }
    
              $url = $field['value'];
              $name = str_replace($wp_uploads_dir['baseurl'] . '/', '', $url);
              $absolutePath = apply_filters('wp_stateless_addon_files_root', ''); 
              $absolutePath .= '/' . $name;
    
              // Move file to the correct location
              if ( ud_get_stateless_media()->is_mode('stateless') ) {
                $source = str_replace( ud_get_stateless_media()->get_gs_host(), ud_get_stateless_media()->get_gs_path(), $url );
                $destination = str_replace( ud_get_stateless_media()->get_gs_host(), ud_get_stateless_media()->get_gs_path(), $absolutePath );
    
  • /lib/classes/compatibility/wpforms.php line 275
              }
    
              $url = $field['value'];
              $name = str_replace($wp_uploads_dir['baseurl'] . '/', '', $url);
              $absolutePath = apply_filters('wp_stateless_addon_files_root', ''); 
              $absolutePath .= '/' . $name;
    
              $absolutePath = str_replace( ud_get_stateless_media()->get_gs_path(), ud_get_stateless_media()->get_gs_host(), $absolutePath );
    
              $fields[$field_id]['value'] = $absolutePath;
            }
    

See this hook used in plugins: