Idea: limit
-
Hi, thank you for your work, it is awesome ??
But I have idea..For example I have on frontpage one sticky post over ns featured checkbox. What I want is limiting click on checkbox in admin custom post types. If I click on my sticky post, others checkboxes will be darken and ajax call not fire – and simple alert in js “News is limiting to 1 item on frontpage”. Some filter for example:
apply_filters( 'ns_featured_posts_limit', function($post_type,$limit) { if ($post_type=='news') { $limit = 1; } return $limit; }); apply_filters( 'ns_featured_posts_alert', function($post_type,$alert) { if ($post_type=='news') { $alert = "News is limiting to %d item on frontpage"; } return $alert; });
- The topic ‘Idea: limit’ is closed to new replies.