PluginProbe
Solid Post Likes / trunk
Solid Post Likes vtrunk
trunk 1.0.8 1.1.0 1.2.0
solid-post-likes / solid-post-likes.php

solid-post-likes.php in Solid Post Likes trunk, at solid-post-likes.php

52 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: Solid Post Likes
4 * Plugin URI: https://wordpress.org/plugins/solid-post-likes
5 * Description: A like button for all post types. Solid and simple.
6 * Version: 1.2.0
7 * Requires at least: 5.9
8 * Requires PHP: 7.4
9 * Author: oacstudio
10 * Author URI: https://oacstudio.de
11 * License: GPL-2.0+
12 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
13 * Text Domain: solid-post-likes
14 * Domain Path: /languages
15 */
16
17
18 // If this file is called directly, abort.
19 if ( ! defined( 'WPINC' ) ) {
20 die;
21 }
22
23 // Friendly advice: namespace declarations in root plugin file will eat plugin settings links functions that don't use namespaces ;).
24 function oacs_spl_myplugin_settings_link( $links ) {
25 $url = get_admin_url() . 'admin.php?page=crb_carbon_fields_container_oacs_spl.php';
26 $settings_link = '<a href="' . $url . '">' . __('Settings', 'solid-post-likes') . '</a>';
27 array_unshift( $links, $settings_link );
28 return $links;
29 }
30 add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'oacs_spl_myplugin_settings_link');
31
32
33 /**
34 * Plugin version. - https://semver.org
35 * Keep in sync with the Version plugin header above (feeds script/style cache busting).
36 */
37 define( 'SOLID_POST_LIKES_VERSION', '1.2.0' );
38
39 // include the Composer autoload file
40 require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
41
42 /**
43 * Engage.
44 */
45 function run_solid_post_likes() {
46
47 $plugin = new OACS\SolidPostLikes\Controllers\App\SolidPostLikesPlugin();
48 // $plugin = new SolidPostLikesPlugin();
49 $plugin->run();
50
51 }
52 run_solid_post_likes();