
WordPress插件开发入门基础教程
_save_post_hook ( No parameters )
_save_post_hook: 这个函数是一个钩子,当一个文章被保存到数据库时,它就会被调用。它可以用来执行额外的动作,如更新元数据或发送通知。
以前在save_post钩子上启动的回调。不再需要了。
function _save_post_hook() {} /** * Check if the installed version of GD supports particular image type * * @since 2.9.0 * @deprecated 3.5.0 Use wp_image_editor_supports() * @see wp_image_editor_supports() * * @param string $mime_type * @return bool */