Felipe Lenin
Forum Replies Created
-
Forum: Plugins
In reply to: [QR Code PicPay for WooCommerce] Error with version wordpress lastetQR Code PicPay para WooCommerce
Inclui o PicPay E-Commerce como um gateway de pagamento para o WooCommerce.
Versão 1.2.0 | Por Deividson Damasio
- This reply was modified 1 year, 3 months ago by Felipe Lenin.
- This reply was modified 1 year, 3 months ago by Felipe Lenin.
Forum: Developing with WordPress
In reply to: Trash bin for Categoriesglobal $pagenow; //global $post; if($pagenow === 'edit-tags.php'){ $term_tax = $_GET['taxonomy']; switch ($term_tax) { case 'cat_notice': add_filter( "cat_notice_row_actions", 'trash_row_actions', 10, 2 ); break; case 'tags_notice': add_filter( "tags_notice_row_actions", 'trash_row_actions', 10, 2 ); break; case 'siglas_notice': add_filter( "siglas_notice_row_actions", 'trash_row_actions', 10, 2 ); break; case 'ativos_notice': add_filter( "ativos_notice_row_actions", 'trash_row_actions', 10, 2 ); break; } } add_action( 'admin_init', 'add_trash_bin' ); add_action( 'admin_init', 'query_trash' ); function add_trash_bin() { $id = isset($_GET['termID']) ? $_GET['termID'] : NULL; $taxName = isset($_GET['taxonomy']) ? $_GET['taxonomy'] : NULL; $trashID = isset($_GET['trashID']) ? $_GET['trashID'] : NULL; $met = isset($_GET['action']) ? $_GET['action'] : NULL; $count = isset($_GET['count']) ? $_GET['count'] : 0; if($met === 'confirm'){ setcookie("cookie_term_id", $id); setcookie("cookie_taxonomy", $taxName); setcookie("cookie_trashID", $trashID); setcookie("cookie_count", $count); $taxNameCookie = $_COOKIE['cookie_taxonomy']; echo " <div id='popup'> <div class='content-popup'> <form action='#' method='get'> <input type='hidden' name='taxonomy' value='$taxNameCookie'> <input type='hidden' name='post_type' value='noticia'> <input type='hidden' name='action' value='exclude'> <label for='email_field'>Digite seu email para confirmar a exclusão!</label> <input id='email_field' type='email' name='email'> <div class='bts'> <input type='button' class='button action' value='Cancelar' id='close'> <input class='bt-exclud button button-primary' id='idcat' type='submit' value='Confirmar' onclick='query_trash'> </div> </form> </div> </div> "; } } function trash_row_actions( $actions, $user_object ) { // Remove the Edit action. //session_start(); unset( $actions['delete'] ); unset( $actions['view'] ); $term_tax = $_GET['taxonomy']; switch ($term_tax) { case 'cat_notice': $idTrash = get_term_by('slug', 'lixeira', $term_tax); $catTrash = $idTrash->term_id; // = 10; break; case 'tags_notice': $idTrash = get_term_by('slug', 'lixeira', $term_tax); $catTrash = $idTrash->term_id; // = 71; break; case 'siglas_notice': $idTrash = get_term_by('slug', 'lixeira', $term_tax); $catTrash = $idTrash->term_id; // = 48; break; case 'ativos_notice': $idTrash = get_term_by('slug', 'lixeira', $term_tax); $catTrash = $idTrash->term_id; // = 49; break; } $id = $user_object->term_id; $taxName = $user_object->taxonomy; $taxParent = $user_object->parent; $count = $user_object->count; echo 'parent:'.$taxParent . ' - ' . 'id:'. $id . ' - ' . $catTrash; if(!term_is_ancestor_of( $catTrash, $id, $taxName ) && $user_object->slug <> 'lixeira'){ //$url = $pagenow .'?taxonomy='.$taxName.'&post_type=noticia&termID='.$id.'&trashID=10&action=confirm'; $html = " <form action='#' method='get'> <input type='hidden' name='taxonomy' value='$taxName'> <input type='hidden' name='post_type' value='noticia'> <input type='hidden' name='termID' value='$id'> <input type='hidden' name='trashID' value='$catTrash'> <input type='hidden' name='count' value='$count'> <input type='hidden' name='action' value='confirm'> <input style='border: none!important; background: none!important; color: red!important; padding: 0!important; cursor: pointer;' class='btadd' id='$id-idcat' type='submit' value='Excluir' onclick='add_trash_bin()'> </form> "; $actions['updatecat'] = $html; } return $actions; } function query_trash(){ global $wpdb; global $pagenow; $current_user = wp_get_current_user(); $email = $current_user->data->user_email; $table_name = $wpdb->prefix . 'term_taxonomy'; $table_relation = $wpdb->prefix . 'term_relationships'; $mail = isset($_GET['email']) ? $_GET['email'] : NULL; $exclude = isset($_GET['action']) ? $_GET['action'] : NULL; $id = $_COOKIE['cookie_term_id']; $taxName = $_COOKIE['cookie_taxonomy']; $trashID = $_COOKIE['cookie_trashID']; if($exclude === 'exclude'){ if($mail === $email){ $wpdb->update( $table_name, array( 'parent' => $trashID, 'count' => 0 ), array( 'term_id' => $id ) ); $wpdb->delete( $table_relation, array( 'term_taxonomy_id' => $id ) ); clean_taxonomy_cache( $taxName ); if($pagenow === 'edit-tags.php'){ echo ' <div class="notice notice-success is-dismissible"> <p>Categoria alocada na Lixeira</p> </div> '; }; } else { if($pagenow === 'edit-tags.php'){ echo ' <div class="notice notice-error is-dismissible"> <p>Email incorreto, por favor tente novamente</p> </div> '; }; } } }Forum: Fixing WordPress
In reply to: Authentication for “Delete post or Category”Sorry about that, I don’t know this appeared, because I didn’t choose this markup, I actually left it blank because the problem is in localhost
Forum: Plugins
In reply to: [Frontend Admin by DynamiApps] error add imageSorry about that, I don’t know this appeared, because I didn’t choose this markup, I actually left it blank because the problem is in localhost
Forum: Plugins
In reply to: [WooCommerce] Call to a member function update_status() on integerGood Morning
So in case the problem is not in the access with the API, this is only in the woocommerce function, update_status (), it shows me this error, then with that we see a scenario just thinking about the woocommerce function, leave the API aside.
Forum: Plugins
In reply to: [All-in-One WP Migration and Backup] Upload stoppedHi i fixed, this problenm is a functions, not plugin.
thanks
Forum: Plugins
In reply to: [WP Customer Area] Problemas com a versao do pluginhi,
Updated the hosting for PHP 5.4 and even then the error persists,
this is the link that this not working:Forum: Plugins
In reply to: [WP Customer Area] Problemas com a versao do pluginSegue o print
Forum: Plugins
In reply to: [WP Customer Area] Problemas com a versao do pluginHi Vincent,
I changed the hosting domain, and it’s still giving error
Parse error: syntax error, unexpected T_FUNCTION in /home/adimi439/public_html/wp-content/plugins/customer-area/src/php/core-addons/admin-area/helpers/admin-menu-helper.class.php on line 263
Forum: Themes and Templates
In reply to: Vertica – WP Resume / CV & Portfoliohi,
I downloaded the theme, but was not functioning as the model, and the menu was one of the problems, but then what I did, I put the function of the primary menu, and used the same css class
follows the code I used below:
<! – Main Navigation ->
<nav id = “side-menu” class = “side-menu-this”>
<? php wp_nav_menu (array (‘menu’ => ‘Menu 1’
‘menu_class’ => ‘sf-menu nav side-menu-nav’
‘menu_id’ => ‘nav’
‘link_before’ => ‘<spam>’,
‘link_after’ => ‘</ spam>’,)); ?>
<!– code coments–>
<! – / *? <? php
$ header_menu_args = array (
‘theme_location’ => ‘vc-menu,
‘container’ => ”,
‘menu_class’ => ‘sf-menu nav side-menu-nav’
‘menu_id’ => ‘nav’
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 0,
‘walker’ => new vt_description_walker ()
);
wp_nav_menu (‘Menu 1’);
?> * / ->
<!– code coments–>
</ nav>
<! – / Main Navigation ->Forum: Plugins
In reply to: [WP Customer Area] Problemas com a versao do pluginRsrsrrs, Sorry
but I’m still having the same problem, this is the code that the:
Warning: session_start (): The session id is too long or contains illegal characters, valid characters are az, AZ, 0-9 and ‘-‘ in /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php on line 204
Warning: session_start (): Can not send session cookie – headers already sent by (output started at /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php:204) in /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php on line 204
Warning: session_start (): Can not send session cache limiter – headers already sent (output started at /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php:204) in /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php on line 204
Warning: Can not modify header information – headers already sent by (output started at /home/sjrco963/public_html/admiraodontologia/wp-content/plugins/customer-area/src/php/core-classes/plugin.class.php:204) in /home/sjrco963/public_html/admiraodontologia/wp-includes/pluggable.php on line 1196
Forum: Plugins
In reply to: Como mudar o Texto do Estado para entrega no CheckoutMudado dentro do form do woocommerce
Forum: Plugins
In reply to: Como mudar o Texto do Estado para entrega no CheckoutMudado dentro do form do woocommerce
Bom Pessoal, com muito custo srrsrs
CONSEGUI SEGUE AI A RESPOSTA:<h2><?php _e( ‘Customer details’, ‘woocommerce’,’woocommerce-extra-checkout-fields-for-brazil’ ); ?></h2>
<?php if ($order->billing_cpf) : ?>
<p><?php _e( ‘CPF:’, ‘woocommerce-extra-checkout-fields-for-brazil’ ); ?> <?php echo $order->billing_cpf; ?></p>
<?php endif; ?>
<?php if ($order->billing_cnpj) : ?>
<p><?php _e( ‘CNPJ:’, ‘woocommerce-extra-checkout-fields-for-brazil’ ); ?> <?php echo $order->billing_cnpj; ?></p>
<?php endif; ?><?php if ($order->billing_email) : ?>
<p><?php _e( ‘Email:’, ‘woocommerce’ ); ?> <?php echo $order->billing_email; ?></p>
<?php endif; ?>
<?php if ($order->billing_phone) : ?>
<p><?php _e( ‘Tel:’, ‘woocommerce’ ); ?> <?php echo $order->billing_phone; ?></p>
<?php endif; ?><?php wc_get_template(’emails/email-addresses.php’, array( ‘order’ => $order )); ?>
<?php do_action(‘woocommerce_email_footer’); ?>
Mas não ha nenhuma possibilidade de deixar ele sem ser requerido?