我要覆盖插件文件中的WP公共功能。我想把它放在我的主题functions.php文件,不想直接编辑插件文件,因为我希望这个功能只适用于使用这个主题。 public function application_details_email( $apply ) {
get_job_manager_template
在调试过程中,我发现问题是与$user_id = wp_update_user( $userdata );有关。is_wp_error($user_id)返回false。例如,当我使用wp_get_current_user();时,我可以使用echo user_email,并显示用户的电子邮件。php
if(is_null($current_user)) {
echo 'Sorry, you are not logged in. '.wp<