2, 'editor_script' => 'swapfeed-block', 'editor_style' => 'swapfeed-editor', 'render_callback' => 'swapfeed_render', 'attributes' => array( 'title' => array( 'type' => 'string', 'default' => '' ), 'post_type' => array( 'type' => 'string', 'default' => $s['post_type'] ), 'count' => array( 'type' => 'number', 'default' => (int) $s['per_page'] ), 'columns' => array( 'type' => 'number', 'default' => (int) $s['columns'] ), 'category' => array( 'type' => 'string', 'default' => '' ), 'image' => array( 'type' => 'boolean', 'default' => (bool) $s['show_image'] ), 'excerpt' => array( 'type' => 'boolean', 'default' => (bool) $s['show_excerpt'] ), 'date' => array( 'type' => 'boolean', 'default' => (bool) $s['show_date'] ), 'term' => array( 'type' => 'boolean', 'default' => (bool) $s['show_term'] ), 'filters' => array( 'type' => 'boolean', 'default' => false ), 'allow_term' => array( 'type' => 'boolean', 'default' => (bool) $s['allow_term'] ), ), ) ); wp_register_style( 'swapfeed-editor', SWAPFEED_URL . 'assets/swapfeed.css', array(), SWAPFEED_VERSION ); } );