ये दो कार्य लंगर लिंक बनाते हैं, और आप इसे बहुत सारे कस्टमाइज़ कर सकते हैं, लेकिन केवल अपने मापदंडों का उपयोग करके केवल एक वर्ग जोड़ना असंभव है। कार्य के लिए एक फ़ंक्शन जोड़ना होगा।
add_filter('next_posts_link_attributes', 'posts_link_attributes'); add_filter('previous_posts_link_attributes', 'posts_link_attributes'); function posts_link_attributes() ( return 'class="styled-button"'; )