Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* The template for displaying reviews.
*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
<?php
namespace MyListing\Src;
use \MyListing\Src\Conditions;
use \MyListing\Src\User as User;
use \MyListing\Src\Schema as Schema;
class Listing {
<?php if (!class_exists('WooCommerce')) return; ?>
<div class="sign-in-box element">
<div class="title-style-1">
<i class="material-icons user-area-icon">person</i>
<h5><?php _e( 'Sign in', 'my-listing' ) ?></h5>
</div>
<form class="sign-in-form woocomerce-form woocommerce-form-login login" method="POST" action="<?php echo esc_url( wc_get_page_permalink('myaccount') ) ?>">
<?php do_action( 'woocommerce_login_form_start' ); ?>
<?php
namespace MyListing\Src;
use \MyListing\Src\Term;
use \MyListing\Ext\Listing_Types\Listing_Type as Listing_Type;
class Explore {
public
$active_tab = false,
// @link http://35.177.186.115/woocommerce-merge-account-tabs/
// Credit: Rodolfo Melogli
add_filter( 'woocommerce_account_menu_items', function( $items ) {
unset($items['edit-address']);
unset($items['payment-methods']);
return $items;
}, 999 );
add_action( 'woocommerce_account_edit-account_endpoint', 'woocommerce_account_payment_methods' );
add_action( 'woocommerce_account_edit-account_endpoint', 'woocommerce_account_edit_address' );
<?php
/**
* The template for displaying reviews.
*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() ) {
<?php
add_filter( 'job_manager_locate_template', function( $template, $template_name, $template_path ) {
if ( 'form-fields/work-hours-field.php' != $template_name ) {
return $template;
}
$template = get_stylesheet_directory() . "/includes/integrations/wp-job-manager/templates/{$template_name}";
<?php
/**
* Package Selection Step.
*
* @since 1.0.0
*
* @var array $packages Product list. Each item is CASE27\Integrations\Paid_Listings\Product object.
* @var int $packages_count Packages `$packages` count.
* @var array $user_packages User package list. Each item is CASE27\Integrations\Paid_Listings\Package object.
* @var mixed $type Listing Type object. false|MyListing\Ext\Listing_Types\Listing_Type.
<?php
$data = c27()->merge_options([
'icon' => '',
'icon_style' => 1,
'title' => '',
'content' => '',
'wrapper_class' => 'block-element grid-item reveal',
'wrapper_id' => '',
'ref' => '',
'escape_html' => true,
<?php
/**
* Shows the `file` form field on job listing forms.
*
* This template can be overridden by copying it to yourtheme/job_manager/form-fields/file-field.php.
*
* @see https://wpjobmanager.com/document/template-overrides/
* @author Automattic
* @package WP Job Manager
* @category Template