true, 'copy' => [ 'id' => $post->ID, 'wordpress' => $postTypeInfo['link'] . '&action=edit', 'elementor' => empty( $postTypeInfo['noElementor'] ) ? $postTypeInfo['link'] . '&action=elementor' : '', 'website' => $permalink, ], ]; if ( $this->hasSwift() ) { $data['swift'] = [ 'inCache' => in_array( $permalink, $this->cacheList ), 'permalink' => $permalink, ]; } if ( $postType->name !== 'attachment' ) { $data['trash'] = [ 'id' => $post->ID, ]; $data['rename'] = [ 'id' => $post->ID, ]; } switch ( $postType->name ) { case 'elementor_library': $data['copy']['shortcode'] = '[elementor-template id=' . $post->ID . ']'; break; } return $data; } }