Tag Info

New answers tagged

0

I noticed that in the database comment_status for the posts were closed. This was because I published post via json rest api and by default the comments status were closed.... .


0

After consulting the filter reference page for 'login_url' https://codex.wordpress.org/Function_Reference/wp_login_url I realised I needed to use a function like so... add_filter('login_url', 'my_login_page', 10, 2); function my_login_page( $login_url, $redirect) { return get_permalink( $post->ID ); } error_log('login updated: ...


0

I think, while saving the post, you won't be able to display this result. You can try below instead - Log the output in the database. e.g. update_option('some_option', wp_login_url($redirect)); And then print get_option('some_option') directly somewhere outside this save_post hook callback (e.g. on wp_footer hook). You may need to refresh the page after ...



Top 50 recent answers are included