wip find user fields
This commit is contained in:
@@ -57,6 +57,7 @@ function fipfcard_main_shortcode() {
|
||||
|
||||
$fipfcard_tools = new PLGNTOOLS();
|
||||
|
||||
|
||||
$fipfcard_tools->add_files_to_front( array(
|
||||
"example_style.css",
|
||||
"example_init.js",
|
||||
@@ -76,12 +77,21 @@ function fipfcard_main_shortcode() {
|
||||
$names = ["hugo", "camille"];
|
||||
$ages = ["13", "34", "56"];
|
||||
|
||||
$getPostMeta = get_post_meta( get_the_ID() );
|
||||
$getMetaData = get_metadata( 'post', get_the_ID() );
|
||||
$post_meta = $getPostMeta;
|
||||
|
||||
$getUserMeta = get_metadata( 'user', get_current_user_id() );
|
||||
$user_meta = $getUserMeta;
|
||||
|
||||
$html_front = $fipfcard_tools->create_html(
|
||||
array(
|
||||
"example_index.html",
|
||||
"example_index2.html",
|
||||
),
|
||||
compact(
|
||||
"post_meta",
|
||||
"user_meta",
|
||||
"names",
|
||||
"ages",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user