_save_starter_content_changeset example

$value = wp_get_attachment_url( $value );
            }

            if ( empty( $changeset_data[ $name ] ) || ! empty( $changeset_data[ $name ]['starter_content'] ) ) {
                $this->set_post_value( $name$value );
                $this->pending_starter_content_settings_ids[] = $name;
            }
        }

        if ( ! empty( $this->pending_starter_content_settings_ids ) ) {
            if ( did_action( 'customize_register' ) ) {
                $this->_save_starter_content_changeset();
            } else {
                add_action( 'customize_register', array( $this, '_save_starter_content_changeset' ), 1000 );
            }
        }
    }

    /** * Prepares starter content attachments. * * Ensure that the attachments are valid and that they have slugs and file name/path. * * @since 4.7.0 * * @param array $attachments Attachments. * @return array Prepared attachments. */
Home | Imprint | This part of the site doesn't use cookies.