This file contains hidden or 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
export default withSelect((select, props) => { | |
const { attributes } = props; | |
const { selectedPostType } = attributes; | |
let postTypesArray = []; | |
const getPostTypes = select("core").getPostTypes(); | |
// Gets all PostTypes and add's the name and the slug of each PostType to an array | |
if (getPostTypes != null) { | |
getPostTypes.map((type) => { |
OlderNewer