Completed
Push — update/module-list-config-link... ( de44cc )
by
unknown
33:48 queued 27:14
created

sharedaddy.php ➔ jetpack_sharedaddy_configuration_url()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Module Name: Sharing
4
 * Module Description: Add Twitter, Facebook and Google+ buttons at the bottom of each post, making it easy for visitors to share your content.
5
 * Sort Order: 7
6
 * Recommendation Order: 6
7
 * First Introduced: 1.1
8
 * Major Changes In: 1.2
9
 * Requires Connection: No
10
 * Auto Activate: No
11
 * Module Tags: Social, Recommended
12
 * Feature: Engagement
13
 * Additional Search Queries: share, sharing, sharedaddy, social buttons, buttons, share facebook, share twitter, social media sharing, social media share, social share, icons, email, facebook, twitter, linkedin, pinterest, pocket, social widget, social media
14
 */
15
16
if ( !function_exists( 'sharing_init' ) )
17
	include dirname( __FILE__ ).'/sharedaddy/sharedaddy.php';
18
19
add_action( 'jetpack_modules_loaded', 'sharedaddy_loaded' );
20
21
function sharedaddy_loaded() {
22
	Jetpack::enable_module_configurable( __FILE__ );
23
	add_filter( 'jetpack_module_configuration_url_sharedaddy', 'jetpack_sharedaddy_configuration_url' );
24
}
25
26
function jetpack_sharedaddy_configuration_url() {
27
	return admin_url( 'admin.php?page=jetpack#/settings?term=social%20buttons' );
28
}
29