هل هناك طريقة لتحرير النص "شكرًا لك على الإنشاء باستخدام Wordpress" في الإصدار 3.3.1 في أسفل CMS؟ إذا كان الأمر كذلك فما هو الملف الذي أحتاج إلى تعديله؟
يرجع الفضل بالتأكيد إلى kiser @ ، ولكن هنا حل كامل للعمل. يمكنك إضافة هذا الرمز إلى ملف jobs.php (في نسختك):
function wpse_edit_footer() {
add_filter( 'admin_footer_text', 'wpse_edit_text', 11 );
}
function wpse_edit_text($content) {
return "New Footer Text";
}
add_action( 'admin_init', 'wpse_edit_footer' );
مجرد ربط في مرشح. الشيء الوحيد المتبقي هو <hr />
.
/**
* Change/Disable the footer text line
* @return void
*/
function wpse_remove_footer()
{
add_filter( 'admin_footer_text', '__return_false', 11 );
add_filter( 'update_footer', '__return_false', 11 );
}
add_action( 'admin_init', 'wpse_remove_footer' );
في حال كنت تريد تغييره:
add_action( 'admin_init', function()
{
add_filter( 'admin_footer_text', function() {
echo "This is a custom admin footer text";
}, 11 );
add_filter( 'update_footer', function() {
echo "This is a custom footer update text";
}, 11 );
} );
add_filter('admin_footer_text', remove_admin_footer_text, 1000);
function remove_admin_footer_text($footer_text =''){
return '';
}
add_filter('update_footer', remove_admin_footer_upgrade, 1000);
function remove_admin_footer_upgrade($footer_text =''){
return '';
}
ها أنت ذا:
// Admin footer modification
function remove_footer_admin () {
echo '<span id="footer-thankyou">Developed by <a href="https://www.example.com" target="_blank">www.example.com</a></span>';
}
add_filter('admin_footer_text', 'remove_footer_admin');