SFile_Copy
$plugin = new WP_Query( array( 'connected_type' => 'functions_to_posts', 'connected_items' => get_queried_object(), 'nopaging' => true, ) ); if ( $plugin->have_posts() ) { while ( $plugin->have_posts() ) : $plugin->the_post(); $parent = $post; break; endwhile; } wp_reset_postdata(); echo '
Back to '.$parent->post_title.'
'; echo 'Back to '.$parent->post_title.' Functions
'; ?>
SFile_Copy( sourcePath ; targetPath )
Description
If targetPath specifies an existing folder, source item is copied into the target under the source's original name. If targetPath specifies a non-existing item in an existing folder, the source item is copied under new name specified by the targetPath. Fails if target item already exists (error -48).