ეს პლაგინი არ დატესტილა WordPress-ის 3 ძირითად ვერსიაზე. როგორც ჩანს, ის უკვე აღარ არის მხარდაჭერილი და შესაძლოა არ იყოს თავსებადი WordPress-ის მიმდინარე ვერსიასთან.

Post Moon

აღწერა

This plugin lets you debugging your AJAX actions to your WordPress site.

ეკრანული სურათები

  • The view of the results after AJAX request.

დაყენება

  1. Download the plugin.
  2. Activate the plugin in the WordPress Admin Panel.
  3. Usage of the plugin:
    Shortcode: “[moon selector=”my_products” category=”laptops” method=”post” action=”postmoon” post_type=”product” ppp=”5″ order=”DESC”]
    or in php place do_shortcode(‘[moon selector=”my_products” category=”laptops” method=”post” action=”postmoon” post_type=”product” ppp=”5″ order=”DESC”]’)”.

    The “selector” is ID of the your DOM element.

    function.php very basic example of the code:

“function postmoon_action_method(){
if(isset($_POST[“post_type”])){
$args = array(
‘posts_per_page’ => sanitize_text_field($_POST[“ppp”]),
‘post_type’ => sanitize_text_field($_POST[“post_type”]),
‘product_cat’ => sanitize_text_field($_POST[“category”]),
‘order’ => sanitize_text_field($_POST[“order”])
);
$query = new WP_Query( $args );
if ( $query->have_posts() ) {
echo ‘

    ‘;
    while ( $query->have_posts() ) : $query->the_post();
    global $product;
    $product_output = ‘

  • ‘;
    $product_output .= ”.$product->get_title().”;
    $image_links[0] = get_post_thumbnail_id( $product->id );
    $gallery = wp_get_attachment_image_src($image_links[0], ‘full’ );
    $product_output .= “”;
    $product_output .= ”.$product->get_price_html().”;
    $product_output .= ‘
  • ‘;
    echo $product_output;
    endwhile;
    echo ‘

‘;
wp_reset_postdata();
}
}
die();
}”.
“add_action(“wp_ajax_postmoon”,”postmoon_action_method”);”.

“add_action(“wp_ajax_nopriv_postmoon”,”postmoon_action_method”);”.

The results you will see in the your browser only if you are administrator.

ხდკ

There are currently no FAQs at this time.

მიმოხილვები

There are no reviews for this plugin.

მონაწილეები & დეველოპერები

“Post Moon” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს მის განვითარებაში.

მონაწილეები

გადათარგმნეთ Post Moon თქვენს ენაზე.

დაინტერესებული ხართ დეველოპმენტით?

დაათვალიერეთ კოდი, შეამოწმეთ SVN რეპო, ან გამოიწერეთ შექმნის ჟურნალი : RSS.

ცვლილებები

1.0

  • First version of the plugin.