New answers tagged

-1

This works for me. I am using WP-Members plugin (and hook). add_action( 'wpmem_post_register_data', 'my_registration_hook', 1 ); function my_registration_hook( $fields ) { wp_set_current_user( $fields['ID'] ); $creds = array( 'user_login' => $fields['username'], 'user_password' => $fields['password'], 'rememember' ...


0

Based on the add_feed function, here's a prototype implementation of remove_feed: /** * Remove a feed type like /atom1/. * * @global WP_Rewrite $wp_rewrite * * @param string $feedname Feed name. * @return string Feed action name. */ function remove_feed( $feedname ) { global $wp_rewrite; if ( in_array( $feedname, ...



Top 50 recent answers are included