Changes lost after upgrade
-
Hello, in the previous topic I was indicated to use the
amp_post_template_file
to avoid the reset after the update of the plugin. But I still do not understand how to solve this, can you help me with more details please?the code indicated in the previous topic is this:
private function verify_and_include( $file, $template_type ) { $located_file = $this->locate_template( $file ); if ( $located_file ) { $file = $located_file; } $file = apply_filters( 'amp_post_template_file', $file, $template_type, $this->post ); if ( ! $this->is_valid_template( $file ) ) { /* translators: %1$s is template file, %2$s is 'WP_CONTENT_DIR' string. */ _doing_it_wrong( __METHOD__, sprintf( esc_html__( 'Path validation for template (%1$s) failed. Path cannot traverse and must be located in <code>%2$s</code>.', 'amp' ), esc_html( $file ), 'WP_CONTENT_DIR' ), '0.1' ); return; } do_action( 'amp_post_template_include_' . $template_type, $this ); include $file; }
I’m not understanding what I should do.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Changes lost after upgrade’ is closed to new replies.