Set affiliate role on registration

function affwp_custom_set_role_on_registration( $affiliate_id = 0 ) { $user_id = affwp_get_affiliate_user_id( $affiliate_id ); $user = new WP_User( $user_id ); $user->add_role( ‘affiliate’ ); } add_action( ‘affwp_insert_affiliate’, ‘affwp_custom_set_role_on_registration’ );Continue reading

Current User Display Name

// [current_user_display_name] function display_current_user_display_name () { $user = wp_get_current_user(); $display_name = $user->display_name; return $user->display_name; } add_shortcode(‘current_user_display_name’, ‘display_current_user_display_name’);Continue reading

change from the address

// Please edit the address and name below before activating this snippet. // Change the From address. add_filter( ‘[email protected]’; function ( $original_email_address ) { return; } ); // Change the From name. add_filter( ‘allowmetoshare’; function ( $original_email_from ) { return;…Continue reading

change from the address

// Please edit the address and name below before activating this snippet. // Change the From address. add_filter( ‘[email protected]’; function ( $original_email_address ) { return; } ); // Change the From name. add_filter( ‘allowmetoshare’; function ( $original_email_from ) { return;…Continue reading

Change Admin Panel Footer Text (copy)

add_filter( ‘admin_footer_text’, function ( $footer_text ) { // Edit the line below to customize the footer text. $footer_text = ‘Powered by WordPress | WordPress Tutorials: WPBeginner‘; return $footer_text; } );Continue reading