• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Hooks / delete_comment – action

Fires immediately before a comment is deleted from the database. 

Parameters

.
( 1.2.0 ) . .
Added
( 4.9.0 ) the `$comment` parameter. . . .
( int ) $comment_id The comment ID. . . .
$comment
( WP_Comment ) The comment to be deleted. . . .
Hook name: delete_comment
Hook type: action
Plugin ref: WordPress
Sourcefile:
File ref: wp_delete_comment() – Trashes or deletes a comment.
Description: Fires immediately before a comment is deleted from the database. 
Parameters:
Deprecated?: No
API Letters: C,D

Invokers

1 to 1 of 1
  • wp_delete_comment() – Trashes or deletes a comment.

Implementers

    Published: 25th November 2019 | Last updated: 21st August 2020

    Primary Sidebar

    Information

    Hook name: delete_comment
    Hook type: action
    Plugin ref: WordPress
    Sourcefile:
    File ref: wp_delete_comment() – Trashes or deletes a comment.
    Description: Fires immediately before a comment is deleted from the database. 
    Parameters:
    Deprecated?: No
    API Letters: C,D

    Footer

    WP-a2z
    WordPress core a2z
    WordPress core only
    WordPress 5.6
    WordPress a2z
    WordPress core a2z
    Genesis Theme Framework a2z
    Jetpack a2z
    WordPress develop tests
    Easy Digital Downloads a2z
    WooCommerce a2z
    Yoast SEO a2z
    WordPress Blocks

    Site:  core.wp-a2z.org
    © Copyright WP-a2z 2014-2021. All rights reserved.


    Website designed and developed by Herb Miller
    Proudly powered by WordPress and oik plugins

    • Home
    • Blog
    • Sitemap
    • Sites