This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($_GET['activated']) && is_admin()){ | |
$new_page_title = 'This is the page title'; | |
$new_page_content = 'This is the page content'; | |
$new_page_template = ''; //ex. template-custom.php. Leave blank if you don't want a custom page template. | |
$page_check = get_page_by_title($new_page_title); | |
$new_page = array( | |
'post_type' => 'page', | |
'post_title' => $new_page_title, | |
'post_content' => $new_page_content, | |
'post_status' => 'publish', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
type ItemType = { | |
id: Number; | |
title: String; | |
children: Array<Number>; | |
}; | |
// Each "ItemType" element in the array have a array of children ID's. These refer | |
// to a ItemType. |
OlderNewer