datepicker-rtl.php
4 years ago
gutenberg-jalali-calendar.php
4 years ago
lists-fix.php
4 years ago
styles-fix.php
4 years ago
widgets.php
4 years ago
widgets.php
59 lines
| 1 | <?php |
| 2 | |
| 3 | defined( 'ABSPATH' ) or exit( 'No direct script access allowed' ); |
| 4 | |
| 5 | /** |
| 6 | * Replace wp-planet.ir to News and Events widget |
| 7 | * |
| 8 | * @author Morteza Geransayeh |
| 9 | * @package WP-Parsidate |
| 10 | * @subpackage Core/General |
| 11 | */ |
| 12 | |
| 13 | /** |
| 14 | * Widget primary link |
| 15 | * |
| 16 | * @return string |
| 17 | * @author Morteza Geransayeh |
| 18 | */ |
| 19 | function wpp_dashboard_primary_link() { |
| 20 | return 'https://wp-parsi.com/'; |
| 21 | } |
| 22 | |
| 23 | add_filter( 'dashboard_primary_link', 'wpp_dashboard_primary_link', 999, 1 ); |
| 24 | |
| 25 | /** |
| 26 | * Widget primary feed |
| 27 | * |
| 28 | * @return string |
| 29 | * @author Morteza Geransayeh |
| 30 | */ |
| 31 | function wpp_dashboard_primary_feed() { |
| 32 | return 'https://wp-parsi.com/feed/'; |
| 33 | } |
| 34 | |
| 35 | add_filter( 'dashboard_primary_feed', 'wpp_dashboard_primary_feed', 999, 1 ); |
| 36 | |
| 37 | /** |
| 38 | * Widget secondary link |
| 39 | * |
| 40 | * @return string |
| 41 | * @author Morteza Geransayeh |
| 42 | */ |
| 43 | function wpp_dashboard_secondary_link() { |
| 44 | return 'http://wp-planet.ir/'; |
| 45 | } |
| 46 | |
| 47 | add_filter( 'dashboard_secondary_link', 'wpp_dashboard_secondary_link', 999, 1 ); |
| 48 | |
| 49 | /** |
| 50 | * Widget secondary feed |
| 51 | * |
| 52 | * @return string |
| 53 | * @author Morteza Geransayeh |
| 54 | */ |
| 55 | function wpp_dashboard_secondary_feed() { |
| 56 | return 'http://wp-planet.ir/feed'; |
| 57 | } |
| 58 | |
| 59 | add_filter( 'dashboard_secondary_feed', 'wpp_dashboard_secondary_feed', 999, 1 ); |