Quando eu mudo e volto para aba, ele fica em janeiro!
valeu por responder!
Eu queria que ele sempre ficava em agosto!
-
Esta resposta foi modificada 5 anos, 8 meses atrás por manoodin.
-
Esta resposta foi modificada 5 anos, 8 meses atrás por manoodin.
Como faço para salvar o termo?
function functiondolarfull( $post_id ) {
$terms10 = ”;
$getslugid = wp_get_post_terms( $post_id, ‘my_taxonomy’ );
$slugs = implode(‘, ‘,wp_list_pluck($getslugid,’slug’));
?>
<div class=”dolarfull-label”>
<label>Dolar Full</label>
</div>
<div class=”dolarfull-fields”>
<input type=”text” name=”testgo1″ value=”<?php echo $slugs; ?>”>
</div>
<?php
}
add_action( ‘ACTIONHOOKDOLARFULL’, ‘functiondolarfull’, 10, 3 );
o topo está bem
o problema está em baixo
function update_my_function( $post_id ) {
if ( isset( $_POST[‘testgo1’] ) ) {
wp_update_term(10000000000000000, ‘my_taxonomy’, array(‘name’ => $_POST[‘testgo1’]));
}