PATH:
home
/
lab2454c
/
nfsin.com
/
wp-content
/
plugins
/
ultimate-member
/
includes
/
admin
/
core
/
packages
/
2.0-beta1
<?php $roles_associations = get_option( 'um_roles_associations' ); /*$um_social_login = get_posts( array( 'post_type' => 'um_social_login', 'numberposts' => -1, 'fields' => 'ids' ) );*/ $p_query = new WP_Query; $um_social_login = $p_query->query( array( 'post_type' => 'um_social_login', 'posts_per_page' => -1, 'fields' => 'ids' ) ); foreach ( $um_social_login as $social_login_id ) { $assigned_role = get_post_meta( $social_login_id, '_um_assigned_role', true ); if ( ! empty( $assigned_role ) ) { $assigned_role = $roles_associations[ $assigned_role ]; update_post_meta( $social_login_id, '_um_assigned_role', $assigned_role ); } }
[-] styles.php
[edit]
[+]
..
[-] settings.php
[edit]
[-] mc_lists.php
[edit]
[-] init.php
[edit]
[-] hooks.php
[edit]
[-] menus.php
[edit]
[-] um_cpt.php
[edit]
[-] .htaccess
[edit]
[-] functions.php
[edit]
[-] social_login.php
[edit]
[-] email_templates.php
[edit]
[-] content_restriction.php
[edit]
[-] user_roles.php
[edit]