Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
ETH Embed Anchor.fm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WP Plugins
ETH Embed Anchor.fm
Merge requests
!1
Initial release
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Initial release
develop
into
main
Overview
0
Commits
7
Pipelines
5
Changes
3
Merged
Erick Hitter
requested to merge
develop
into
main
2 years ago
Overview
0
Commits
7
Pipelines
5
Changes
3
Expand
0
0
Merge request reports
Compare
main
version 4
bda594ec
2 years ago
version 3
92b9e919
2 years ago
version 2
24496036
2 years ago
version 1
d6a4b862
2 years ago
main (base)
and
version 1
latest version
e2ed3de9
7 commits,
2 years ago
version 4
bda594ec
6 commits,
2 years ago
version 3
92b9e919
5 commits,
2 years ago
version 2
24496036
4 commits,
2 years ago
version 1
d6a4b862
3 commits,
2 years ago
3 files
+
80
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
inc/class-plugin.php
0 → 100644
+
49
−
0
Options
<?php
/**
* Plugin functionality.
*
* @package ETH_Embed_Anchor_FM
*/
namespace
ETH_Embed_Anchor_FM
;
/**
* Class Plugin.
*/
class
Plugin
{
/**
* Singleton.
*
* @var Plugin
*/
private
static
$_instance
=
null
;
/**
* Implement singleton.
*
* @return Plugin
*/
public
static
function
get_instance
():
Plugin
{
if
(
!
is_a
(
self
::
$_instance
,
__CLASS__
)
)
{
self
::
$_instance
=
new
self
();
self
::
$_instance
->
setup
();
}
return
self
::
$_instance
;
}
/**
* Silence is golden!
*/
private
function
__construct
()
{}
/**
* Register hooks.
*
* @return void
*/
private
function
setup
():
void
{
// TODO: add oEmbed handler.
// TODO: add shortcode.
}
}
Loading