wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
_wp_after_delete_font_family is private and should not be used in themes or plugins directly.
_wp_after_delete_font_family › WordPress Function
Seit6.5.0
Veraltetn/v
› _wp_after_delete_font_family ( $post_id, $post )
| Zugriff: |
|
| Parameter: (2) |
|
| Definiert in: |
|
| Codex: |
Deletes child font faces when a font family is deleted.
Ähnliche Funktionen: _wp_before_delete_font_face, wp_delete_file, wp_ajax_delete_tag, _wp_delete_post_menu_item, _wp_filter_font_directory
Quellcode
function _wp_after_delete_font_family( $post_id, $post ) {
if ( 'wp_font_family' !== $post->post_type ) {
return;
}
$font_faces_ids = get_children(
array(
'post_parent' => $post_id,
'post_type' => 'wp_font_face',
'fields' => 'ids',
)
);
foreach ( $font_faces_ids as $font_faces_id ) {
wp_delete_post( $font_faces_id, true );
}
}