Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @byron222

    This hook only fires for data inside the “Custom Fields” section. Here’s the test I ran to confirm that it’s still working:

    1. Create a new import and import data into a custom field named “some_cool_field”: https://d.pr/i/qHVpCk

    2. Add the following code inside the Function Editor (All Import -> Settings):

    function my_custom_field( $value, $post_id, $key, $original_value, $existing_meta_keys, $import_id ) {
        echo "importing " . $key . " to " . $post_id . "!!!";
        return $value;
    }
    add_filter( 'pmxi_custom_field', 'my_custom_field', 10, 6 );

    3. Run the import -> click “View Logs” under “Import Complete” -> click the top “Download Log” link -> open the log and search for “some_cool_field”: https://d.pr/i/ZTNJs7.

    What happens if you run this test?

    Plugin Author WP All Import

    (@wpallimport)

    @byron222 I am going to mark this as resolved since we haven’t heard back. Please reply here if you still have questions about this. Anyone else reading this, please start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘I cant use ‘pmxi_custom_field’’ is closed to new replies.