wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_ajax_edit_theme_plugin_file › WordPress Function
Seit4.9.0
Veraltetn/v
› wp_ajax_edit_theme_plugin_file ( Keine Parameter )
Siehe: | |
Definiert in: |
|
Codex: |
Handles editing a theme or plugin file via AJAX.
Ähnliche Funktionen: wp_edit_theme_plugin_file, wp_ajax_delete_plugin, wp_ajax_update_plugin, wp_ajax_activate_plugin, wp_ajax_search_plugins
Quellcode
function wp_ajax_edit_theme_plugin_file() { $r = wp_edit_theme_plugin_file( wp_unslash( $_POST ) ); // Validation of args is done in wp_edit_theme_plugin_file(). if ( is_wp_error( $r ) ) { wp_send_json_error( array_merge( array( 'code' => $r->get_error_code(), 'message' => $r->get_error_message(), ), (array) $r->get_error_data() ) ); } else { wp_send_json_success( array( 'message' => __( 'File edited successfully.' ), ) ); } }