Plugin Directory

Changeset 3246841


Ignore:
Timestamp:
02/26/2025 06:19:37 AM (13 months ago)
Author:
techvootsolutions
Message:

plugin name change

Location:
techvoot-app-firebase
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • techvoot-app-firebase/tags/1.0.0/techvoot-app-firebase.php

    r3245460 r3246841  
    11<?php
    22/*
    3 Plugin Name:  Techvoot App Firebase
     3Plugin Name:  Firebase Push Notification
    44Description:  Techvoot Wordpress Base App Custom Plugin.
    55Version:      1.0.0
     
    1010
    1111// Exit if accessed directly.
    12 if ( ! defined( 'ABSPATH' ) ) {
     12if (! defined('ABSPATH')) {
    1313    exit;
    1414}
    1515
    1616// Set our defined theme path & URI.
    17 if ( ! defined( 'TV_PLUGIN_PATH' ) ) {
    18     define( 'TV_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    19 }
    20 if ( ! defined( 'TV_PLUGIN_FILE' ) ) {
    21     define( 'TV_PLUGIN_FILE', __FILE__ );
    22 }
    23 if ( ! defined( 'TV_PLUGIN_URI' ) ) {
    24     define( 'TV_PLUGIN_URI', plugin_dir_url( __FILE__ ) );
     17if (! defined('TV_PLUGIN_PATH')) {
     18    define('TV_PLUGIN_PATH', plugin_dir_path(__FILE__));
     19}
     20if (! defined('TV_PLUGIN_FILE')) {
     21    define('TV_PLUGIN_FILE', __FILE__);
     22}
     23if (! defined('TV_PLUGIN_URI')) {
     24    define('TV_PLUGIN_URI', plugin_dir_url(__FILE__));
    2525}
    2626
    2727// Set our defined plugin version.
    28 if ( ! defined( 'TV_PLUGIN_VER' ) ) {
    29     if ( ! function_exists( 'get_plugin_data' ) ) {
     28if (! defined('TV_PLUGIN_VER')) {
     29    if (! function_exists('get_plugin_data')) {
    3030        require_once ABSPATH . 'wp-admin/includes/plugin.php';
    3131    }
    32     define( 'TV_PLUGIN_VER', get_plugin_data( __FILE__ )['Version'] );
     32    define('TV_PLUGIN_VER', get_plugin_data(__FILE__)['Version']);
    3333}
    3434
     
    6262add_action(
    6363    'plugins_loaded',
    64     function() {
     64    function () {
    6565        // Load our scripts and stylesheets.
    6666        require_once TV_PLUGIN_PATH . '/classes/class-tv2be-enqueue.php';
     
    9595//
    9696
    97 function tv_firebase_get_config_data() {
     97function tv_firebase_get_config_data()
     98{
    9899
    99100    $cache_key  = 'tv_firebase_config_data';
    100101    $cache_group = 'tv_firebase';
    101     $cache_ttl  = 3600; 
     102    $cache_ttl  = 3600;
    102103    $cached_data = wp_cache_get($cache_key, $cache_group);
    103104    if (false !== $cached_data) {
     
    127128// }
    128129
    129 function tv_firebase_register_files() {
     130function tv_firebase_register_files()
     131{
    130132    wp_register_script(
    131133        'tv_firebase_firebase_js',
     
    136138    );
    137139}
    138 add_action( 'admin_menu', 'tv_firebase_register_files' );
    139 
    140 function tv_firebase_front_end_scripts() {
     140add_action('admin_menu', 'tv_firebase_register_files');
     141
     142function tv_firebase_front_end_scripts()
     143{
    141144    wp_register_script(
    142145        'tv_firebase_firebase_js',
     
    145148        TV_PLUGIN_VER,
    146149        false
    147     );   
    148 }
    149 add_action( 'wp_enqueue_scripts', 'tv_firebase_front_end_scripts' );
     150    );
     151}
     152add_action('wp_enqueue_scripts', 'tv_firebase_front_end_scripts');
    150153
    151154/**
     
    155158 *
    156159 * */
    157 register_activation_hook( __FILE__, 'TV_activation' );
    158 function tv_activation() {
     160register_activation_hook(__FILE__, 'TV_activation');
     161function tv_activation()
     162{
    159163    global $wpdb;
    160164
     
    186190            $schedules['five_minutes'] = [
    187191                'interval' => 300, // 5 minutes in seconds
    188                 'display'  => __('Every 5 Minutes','techvoot-app-firebase'),
     192                'display'  => __('Every 5 Minutes', 'techvoot-app-firebase'),
    189193            ];
    190194        }
  • techvoot-app-firebase/trunk/techvoot-app-firebase.php

    r3245453 r3246841  
    11<?php
    22/*
    3 Plugin Name:  Techvoot App Firebase
     3Plugin Name:  Firebase Push Notification
    44Description:  Techvoot Wordpress Base App Custom Plugin.
    55Version:      1.0.0
     
    1010
    1111// Exit if accessed directly.
    12 if ( ! defined( 'ABSPATH' ) ) {
     12if (! defined('ABSPATH')) {
    1313    exit;
    1414}
    1515
    1616// Set our defined theme path & URI.
    17 if ( ! defined( 'TV_PLUGIN_PATH' ) ) {
    18     define( 'TV_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
    19 }
    20 if ( ! defined( 'TV_PLUGIN_FILE' ) ) {
    21     define( 'TV_PLUGIN_FILE', __FILE__ );
    22 }
    23 if ( ! defined( 'TV_PLUGIN_URI' ) ) {
    24     define( 'TV_PLUGIN_URI', plugin_dir_url( __FILE__ ) );
     17if (! defined('TV_PLUGIN_PATH')) {
     18    define('TV_PLUGIN_PATH', plugin_dir_path(__FILE__));
     19}
     20if (! defined('TV_PLUGIN_FILE')) {
     21    define('TV_PLUGIN_FILE', __FILE__);
     22}
     23if (! defined('TV_PLUGIN_URI')) {
     24    define('TV_PLUGIN_URI', plugin_dir_url(__FILE__));
    2525}
    2626
    2727// Set our defined plugin version.
    28 if ( ! defined( 'TV_PLUGIN_VER' ) ) {
    29     if ( ! function_exists( 'get_plugin_data' ) ) {
     28if (! defined('TV_PLUGIN_VER')) {
     29    if (! function_exists('get_plugin_data')) {
    3030        require_once ABSPATH . 'wp-admin/includes/plugin.php';
    3131    }
    32     define( 'TV_PLUGIN_VER', get_plugin_data( __FILE__ )['Version'] );
     32    define('TV_PLUGIN_VER', get_plugin_data(__FILE__)['Version']);
    3333}
    3434
     
    6262add_action(
    6363    'plugins_loaded',
    64     function() {
     64    function () {
    6565        // Load our scripts and stylesheets.
    6666        require_once TV_PLUGIN_PATH . '/classes/class-tv2be-enqueue.php';
     
    9595//
    9696
    97 function tv_firebase_get_config_data() {
     97function tv_firebase_get_config_data()
     98{
    9899
    99100    $cache_key  = 'tv_firebase_config_data';
    100101    $cache_group = 'tv_firebase';
    101     $cache_ttl  = 3600; 
     102    $cache_ttl  = 3600;
    102103    $cached_data = wp_cache_get($cache_key, $cache_group);
    103104    if (false !== $cached_data) {
     
    127128// }
    128129
    129 function tv_firebase_register_files() {
     130function tv_firebase_register_files()
     131{
    130132    wp_register_script(
    131133        'tv_firebase_firebase_js',
     
    136138    );
    137139}
    138 add_action( 'admin_menu', 'tv_firebase_register_files' );
    139 
    140 function tv_firebase_front_end_scripts() {
     140add_action('admin_menu', 'tv_firebase_register_files');
     141
     142function tv_firebase_front_end_scripts()
     143{
    141144    wp_register_script(
    142145        'tv_firebase_firebase_js',
     
    145148        TV_PLUGIN_VER,
    146149        false
    147     );   
    148 }
    149 add_action( 'wp_enqueue_scripts', 'tv_firebase_front_end_scripts' );
     150    );
     151}
     152add_action('wp_enqueue_scripts', 'tv_firebase_front_end_scripts');
    150153
    151154/**
     
    155158 *
    156159 * */
    157 register_activation_hook( __FILE__, 'TV_activation' );
    158 function tv_activation() {
     160register_activation_hook(__FILE__, 'TV_activation');
     161function tv_activation()
     162{
    159163    global $wpdb;
    160164
     
    186190            $schedules['five_minutes'] = [
    187191                'interval' => 300, // 5 minutes in seconds
    188                 'display'  => __('Every 5 Minutes','techvoot-app-firebase'),
     192                'display'  => __('Every 5 Minutes', 'techvoot-app-firebase'),
    189193            ];
    190194        }
Note: See TracChangeset for help on using the changeset viewer.