wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
_wp_after_delete_font_family is private and should not be used in themes or plugins directly.
_wp_after_delete_font_family › WordPress Function
Desde6.5.0
Obsoleton/a
› _wp_after_delete_font_family ( $post_id, $post )
Acesso: |
|
Parâmetros: (2) |
|
Definido em: |
|
Codex: |
Deletes child font faces when a font family is deleted.
Funções relacionadas: _wp_before_delete_font_face, wp_delete_file, wp_ajax_delete_tag, wp_ajax_delete_comment, _wp_filter_font_directory
Fonte
function _wp_after_delete_font_family( $post_id, $post ) { if ( 'wp_font_family' !== $post->post_type ) { return; } $font_faces = get_children( array( 'post_parent' => $post_id, 'post_type' => 'wp_font_face', ) ); foreach ( $font_faces as $font_face ) { wp_delete_post( $font_face->ID, true ); } }