- removed extract() from show_builder() function;

- wpcs for `show_builder()`;
This commit is contained in:
Mykyta Synelnikov
2023-06-22 17:06:01 +03:00
parent d5990c7bbb
commit 069a8d15ac
3 changed files with 87 additions and 139 deletions
+8 -11
View File
@@ -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
*