Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Hooks the WP admin_notices action to add in a notice
- * if the Mediaburst credentials aren't added in settings.
- *
- * @return void
- **/
- public function admin_notices() {
- if ( 'yes' == get_option( 'mbesms_jigobase_admin_notifications' ) && ! trim( get_option( 'mbesms_jigobase_admin_number' ) ) ) {
- $url = admin_url( '/admin.php?page=settings' );
- $this->render_admin_error( sprintf( __( '<strong>Jigoshop SMS error:</strong> To enable Admin SMS notifications, please enter an admin mobile number and admin country on the “SMS” tab in the <a href="%s">Jigoshop Settings</a>, alternatively set “admin SMS notifications” to “no”.', 'jigoshopsms' ), $url ) );
- }
- if ( strlen( get_option( 'mbesms_jigobase_from' ) ) > 11 )
- $this->show_from_length_error();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement