是否有插件或已知的方法来跟踪用户配置文件的更改并在Wordpress中保存上次修改的日期?
我试过使用ACF,但它没有自动更新此字段的选项。
提前谢谢。
是否有插件或已知的方法来跟踪用户配置文件的更改并在Wordpress中保存上次修改的日期?
我试过使用ACF,但它没有自动更新此字段的选项。
提前谢谢。
如评论中所述,您可以使用Plugin 和Metadata 附加某些功能的APIthe \'profile_update\'
action 这样,每当用户的配置文件信息收到更新时,自定义用户元数据就会设置为更新的时间:
function wpse216609_update_profile_modified( $user_id ) {
update_user_meta( $user_id, \'wpse216609_profile_updated\', current_time( \'mysql\' ) );
}
add_action( \'profile_update\', \'wpse216609_update_profile_modified\' );
一切都好吗<我需要wp-list-table 也要显示custom-fields 在每个custom-post 我有,但我不知道如何做到这一点,在这幅图中,它显示了带有字段的表格:Title, Author and Publication Date: 我想要的是能够选择custom-fields 将出现,例如以下示例Title, Carta, Naipe, Author, and Date of Publication: