回答編集履歴
1
追記
    
        answer	
    CHANGED
    
    | @@ -6,4 +6,20 @@ | |
| 6 6 |  | 
| 7 7 | 
             
            そもそもFTPで使用中のテーマを確認したいということの必要性が凡人には全くもって理解できませんが。
         | 
| 8 8 |  | 
| 9 | 
            -
            とりあえず通常はFTPで使用中のテーマは確認できませんので。
         | 
| 9 | 
            +
            とりあえず通常はFTPで使用中のテーマは確認できませんので。
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            **追記**
         | 
| 12 | 
            +
            これ以上は時間の無駄なので参考のコードを書いておく。
         | 
| 13 | 
            +
            拡張子が必要かどうかは別として以下のようなコードで`/wp-content/themes`に有効中のテーマ名のファイルを生成する。
         | 
| 14 | 
            +
            ファイル名をテーマ名にするようにしたのは可視性のみ。
         | 
| 15 | 
            +
            これは全てのテーマの`functions.php`に書いておく必要がある。
         | 
| 16 | 
            +
            ```
         | 
| 17 | 
            +
            function get_current_theme( $new_name, $new_theme, $old_theme ) {
         | 
| 18 | 
            +
            	file_put_contents( get_theme_root().'/'.$new_name.'.txt', $new_name );
         | 
| 19 | 
            +
            	$old_file = get_theme_root().'/'.$old_theme->get( 'Name' ).'.txt';
         | 
| 20 | 
            +
            	if ( file_exists( $old_file ) ) {
         | 
| 21 | 
            +
            		unlink( $old_file );
         | 
| 22 | 
            +
            	}
         | 
| 23 | 
            +
            }
         | 
| 24 | 
            +
            add_action( 'switch_theme', 'get_current_theme', 10, 3 );
         | 
| 25 | 
            +
            ```
         | 
