vincentavct
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Developing with WordPress
In reply to: several admin_enqueue_scripts using the same scriptproblem solved, action with Capital letter not reported, sorry
Forum: Developing with WordPress
In reply to: several admin_enqueue_scripts using the same scripti tried registering a second js and calling it for click event. nothing changes.
Forum: Developing with WordPress
In reply to: add attribute before saving a posthello,
after some research following your message, I discover for each new post, an instance is saved. It is possible to access the object with the
save_posthook. I added aprivate $pidattribute to my class. it is fed via save_post.
It is a solution to my problem.
Are there any best practices?
I pass the request in resolved.thank you
Forum: Developing with WordPress
In reply to: Get current user post count ( custom post type ‘tourism’)you can try
$args = array( 'post_type' => 'tourism', 'post_author' => $current_user->ID, ); $query = new WP_Query( $args ); $count = count( $query->get_posts() );- This reply was modified 5 years, 1 month ago by bcworkz.
Forum: Developing with WordPress
In reply to: storefront theme child and wp_enqueue_scriptshere is the solution to my question.
add_action( 'admin_enqueue_scripts', array( $this, 'add_books_author_js' ) );indeed the script is called admin side
- This reply was modified 5 years, 1 month ago by vincentavct.
Viewing 5 replies - 1 through 5 (of 5 total)