' . $located . '' ), '2.1' ); return; } // Allow 3rd party plugin filter template file from their plugin. $located = apply_filters( 'uwp_get_template', $located, $template_name, $args, $template_path, $default_path ); do_action( 'uwp_before_template_part', $template_name, $template_path, $located, $args ); include( $located ); do_action( 'uwp_after_template_part', $template_name, $template_path, $located, $args ); } /** * Like uwp_get_template, but returns the HTML instead of outputting. * * @see uwp_get_template * @since 1.2.1.3 * @param string $template_name Template name. * @param array $args Arguments. (default: array). * @param string $template_path Template path. (default: ''). * @param string $default_path Default path. (default: ''). * * @return string */ function uwp_get_template_html( $template_name, $args = array(), $template_path = '', $default_path = '' ) { ob_start(); uwp_get_template( $template_name, $args, $template_path, $default_path ); return ob_get_clean(); } /** * doing_it_wrong function. * * A function is called when mark something as being incorrectly called. * * @since 1.2.1.3 * * @param string $function The function that was called. * @param string $message A message explaining what has been done incorrectly. * @param string $version The version of WordPress where the message was added. */ function uwp_doing_it_wrong( $function, $message, $version ) { $message .= ' Backtrace: ' . wp_debug_backtrace_summary(); if ( defined( 'DOING_AJAX' ) ) { do_action( 'doing_it_wrong_run', $function, $message, $version ); uwp_error_log( $function . ' was called incorrectly. ' . $message . '. This message was added in version ' . $version . '.' ); } else { _doing_it_wrong( $function, $message, $version ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } function uwp_password_strength_inline_js() { wp_enqueue_script( 'password-strength-meter' ); // add scripts ?>