• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / Jetpack_Subscriptions::social_notifications_subscribe_section() – Someone follows my blog section

You appear to be a bot. Output may be restricted

Description

Someone follows my blog section

Usage

Jetpack_Subscriptions::social_notifications_subscribe_section();

Parameters

Returns

void

Source

File name: jetpack/modules/subscriptions.php
Lines:

1 to 20 of 20
  public function social_notifications_subscribe_section() {
    // Atypical usage here. We emit jquery to move subscribe notification checkbox to be with the rest of the email notification settings
    ?>
		<script type="text/javascript">
			jQuery( function( $ )  {
				var table = $( '#social_notifications_subscribe' ).parents( 'table:first' ),
					header = table.prevAll( 'h2:first' ),
					newParent = $( '#moderation_notify' ).parent( 'label' ).parent();

				if ( ! table.length || ! header.length || ! newParent.length ) {
					return;
				}

				newParent.append( '<br/>' ).append( table.end().parent( 'label' ).siblings().andSelf() );
				header.remove();
				table.remove();
			} );
		</script>
		<?php
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 9 February 2020 | Last updated: 4 April 2020

Primary Sidebar

Information

Function name: Jetpack_Subscriptions::social_notifications_subscribe_section
Class ref: Jetpack_Subscriptions
Plugin ref: Jetpack
Version: 9.2
Sourcefile: modules/subscriptions.php
File ref: modules/subscriptions.php
Deprecated?: No
API Letters: J,N,S

Footer

Jetpack a2z
Jetpack a2z
Jetpack a2z
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites