mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- removed extract() from show_builder() function;
- wpcs for `show_builder()`;
This commit is contained in:
@@ -95,9 +95,9 @@ if ( ! class_exists( 'um\core\Query' ) ) {
|
||||
}
|
||||
|
||||
$pages = $wpdb->get_results(
|
||||
"SELECT *
|
||||
FROM {$wpdb->posts}
|
||||
WHERE post_type = 'page' AND
|
||||
"SELECT *
|
||||
FROM {$wpdb->posts}
|
||||
WHERE post_type = 'page' AND
|
||||
post_status = 'publish'",
|
||||
OBJECT
|
||||
);
|
||||
@@ -363,21 +363,18 @@ if ( ! class_exists( 'um\core\Query' ) ) {
|
||||
update_post_meta( $post_id, '_um_' . $key, $new_value );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get data
|
||||
* Get postmeta related to Ultimate Member.
|
||||
*
|
||||
* @param $key
|
||||
* @param $post_id
|
||||
* @param string $key
|
||||
* @param int $post_id
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
function get_attr( $key, $post_id ) {
|
||||
$meta = get_post_meta( $post_id, '_um_' . $key, true );
|
||||
return $meta;
|
||||
public function get_attr( $key, $post_id ) {
|
||||
return get_post_meta( $post_id, '_um_' . $key, true );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Delete data
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user