pmpro_updates_notice

Function to show an admin notice linking to the updates page.

Description

pmpro_updates_notice(); 

Usage

  1. if ( !function_exists( 'pmpro_updates_notice' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'paid-memberships-pro/includes/updates.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pmpro_updates_notice(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/updates.php  
  1. function pmpro_updates_notice() { 
  2. ?> 
  3. <div class="update-nag"> 
  4. <p> 
  5. <?php  
  6. echo __( 'Paid Memberships Pro Data Update Required', 'paid-memberships-pro' ) . '. '; 
  7. echo sprintf(__( '(1) <a target="_blank" href="%s">Backup your WordPress database</a></strong> and then (2) <a href="%s">click here to start the update</a>.', 'paid-memberships-pro' ), 'https://codex.wordpress.org/WordPress_Backups#Database_Backup_Instructions', admin_url('admin.php?page=pmpro-updates')); 
  8. ?> 
  9. </p> 
  10. </div> 
  11. <?php